/* GreenBiz Executive Member Portal — isolated member UI */
:root {
  --ex-ink: #0b2420;
  --ex-ink-soft: #536d68;
  --ex-blue: #2563eb;
  --ex-blue-deep: #173b74;
  --ex-blue-dark: #0b2345;
  --ex-mint: #edf4ff;
  --ex-line: #dbe6f3;
  --ex-surface: #f4f7fb;
  --ex-white: #fff;
  --ex-shadow: 0 18px 45px rgba(5, 44, 35, 0.08);
  --ex-sidebar-width: 255px;
  --ex-content-gutter: 28px;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--ex-surface);
}
body.executive-app {
  margin: 0;
  background: var(--ex-surface);
  color: var(--ex-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  min-height: 100vh;
}
a {
  color: inherit;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ex-ink);
  box-shadow: var(--ex-shadow);
}
.skip-link:focus {
  top: 16px;
}
.executive-shell {
  display: flex;
  min-height: 100vh;
}
.executive-sidebar {
  width: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background: linear-gradient(160deg, #0b2345 0%, #123b70 48%, #0a1e3a 100%);
  color: #eef5ff;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  overflow: auto;
}
.executive-sidebar:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 42px 42px;
}
.sidebar-brand,
.member-identity-mini,
.executive-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--ex-blue-bright), var(--ex-blue-deep));
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.brand-lockup strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.18em;
}
.brand-lockup small {
  display: block;
  margin-top: 3px;
  color: #91b1d7;
  font-size: 8px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.sidebar-close {
  display: none;
  border: 0;
  background: transparent;
  color: #d7e7ff;
  font-size: 28px;
  cursor: pointer;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--ex-blue-bright), var(--ex-blue-deep));
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-xs {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.executive-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #bfd2ea;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  transition: 0.2s ease;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(166, 203, 244, 0.16);
}
.nav-item.is-active {
  background: linear-gradient(
    100deg,
    rgba(37, 99, 235, 0.25),
    rgba(37, 99, 235, 0.08)
  );
  border-color: rgba(96, 165, 250, 0.35);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--ex-blue-light);
}
.nav-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 17px;
  color: var(--ex-blue-icon);
}
.nav-icon svg {
  width: 17px;
  height: 17px;
}
.nav-item.is-active .nav-icon {
  color: var(--ex-blue-active);
}
.sidebar-spacer {
  flex: 1;
  min-height: 40px;
}
.sidebar-security {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px 11px;
  margin: 0;
  border: 1px solid rgba(143, 192, 247, 0.15);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
  position: relative;
  z-index: 1;
}
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ex-blue-light);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
  flex: 0 0 8px;
}
.sidebar-security strong {
  display: block;
  font-size: 10px;
}
.sidebar-security small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    color: #2db2fd;
}
.executive-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.executive-topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--ex-line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.topbar-welcome {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.topbar-welcome-eyebrow {
  font-size: 8px;
  color: var(--ex-blue);
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.topbar-welcome strong {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-clock {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 18px;
  border-right: 1px solid var(--ex-line);
}
.clock-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eef4ff;
  color: var(--ex-blue);
  font-size: 19px;
}
.topbar-clock strong,
.topbar-clock span {
  display: block;
}
.topbar-clock strong {
  font-size: 11px;
  line-height: 1.1;
}
.topbar-clock div span {
  font-size: 8px;
  color: #7a8da6;
  margin-top: 3px;
}
.topbar-account {
  position: relative;
}
.topbar-account-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 4px 5px;
  border-radius: 12px;
  color: var(--ex-ink);
  cursor: pointer;
  text-align: left;
}
.topbar-account-toggle:hover,
.topbar-account-toggle:focus-visible {
  background: #f1f5fb;
  outline: none;
}
.topbar-user-copy strong,
.topbar-user-copy span {
  display: block;
}
.topbar-user-copy strong {
  font-size: 11px;
}
.topbar-user-copy span {
  font-size: 8px;
  color: #7890ad;
  margin-top: 2px;
}
.account-chevron {
  font-size: 15px;
  color: #6f84a0;
  margin-left: 2px;
  transition: transform 0.18s ease;
}
.topbar-account-toggle[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 265px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ex-line);
  border-radius: 15px;
  box-shadow: 0 20px 45px rgba(19, 53, 91, 0.14);
  z-index: 80;
}
.account-menu[hidden] {
  display: none;
}
.account-menu-head {
  padding: 9px 10px 11px;
}
.account-menu-label {
  display: block;
  color: var(--ex-blue);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
}
.account-menu-head strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
}
.account-menu-head small {
    display: block;
    margin-top: 3px;
    color: #000000;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1px;
}
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ex-ink);
}
.account-menu-item:hover {
  background: #f3f7fd;
}
.account-menu-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #edf4ff;
  color: var(--ex-blue);
}
.account-menu-icon svg {
  width: 15px;
  height: 15px;
}
.account-menu-item strong,
.account-menu-item small {
  display: block;
}
.account-menu-item strong {
  font-size: 10px;
}
.account-menu-item small {
  font-size: 8px;
  color: #7b8da4;
  margin-top: 3px;
}
.account-menu-divider {
  height: 1px;
  background: #e7edf5;
  margin: 5px 4px;
}
.account-menu-danger {
  color: #9b4f4f;
}
.account-menu-danger .account-menu-icon {
  background: #fff0f0;
  color: #b75b5b;
}
.mobile-menu-button {
  display: none;
}

.executive-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 46px 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 750;
  transition: 0.2s ease;
}
.btn-primary {
  background: var(--ex-green);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.17);
}
.btn-primary:hover {
  background: var(--ex-blue-deep);
  transform: translateY(-1px);
}
.executive-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 46px 24px;
  color: #91a39e;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar-backdrop {
  display: none;
}

/* =========================================================
   Executive Profile — approved target layout
   ========================================================= */
.executive-sidebar {
  width: var(--ex-sidebar-width);
  flex-basis: var(--ex-sidebar-width);
  padding: 0 10px 15px;
  background: linear-gradient(160deg, #123a6b 0%, #0d2f59 52%, #0a274b 100%);
}
.sidebar-brand {
  min-height: 52px;
  margin: 0 -10px 16px;
  padding: 0 20px;
  background: linear-gradient(180deg, #164987, #123b70);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: #fff;
  color: #1761c9;
  box-shadow: none;
}
.brand-mark svg {
  width: 25px;
  height: 25px;
}
.brand-lockup strong {
  font-size: 18px;
  letter-spacing: 0.12em;
}
.brand-lockup small {
  color: #d4e4f8;
  font-size: 8px;
  letter-spacing: 0.08em;
}
.executive-nav {
  gap: 4px;
}
.nav-item {
  padding: 10px 12px;
  border-radius: 10px;
  color: #e1ebf8;
  font-size: 13px;
  font-weight: 600;
}
.nav-item .nav-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  color: #c4d7ef;
}
.nav-item .nav-icon svg {
  width: 19px;
  height: 19px;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: transparent;
  color: #fff;
}
.nav-item.is-active {
  background: linear-gradient(90deg, #2b73d7, var(--ex-blue));
  border-color: transparent;
  box-shadow: 0 7px 18px rgba(4, 34, 73, 0.2), inset 3px 0 0 #8ec4ff;
}
.nav-item.is-active .nav-icon {
  color: #fff;
}

.sidebar-security strong {
    font-size: 10px;
    color: #c8c7c7;
    letter-spacing: 0.3px;
}

.status-pulse {
  background: #54a7ff;
  box-shadow: 0 0 0 4px rgba(84, 167, 255, 0.12);
}

.executive-main {
  min-height: 100vh;
}
.executive-topbar {
  height: 70px;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid #e1e8f1;
  box-shadow: 0 1px 0 rgba(22, 60, 105, 0.02);
}
.topbar-actions {
  gap: 16px;
}
.topbar-clock {
  padding-right: 17px;
  border-right: 1px solid #e3eaf2;
}
.clock-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f6fb;
  color: #1f65d5;
}
.clock-icon svg {
  width: 19px;
  height: 19px;
}
.topbar-clock strong {
  font-size: 12px;
  color: #10294c;
}
.topbar-clock div span {
  font-size: 8px;
  color: #70849f;
}
.topbar-account-toggle {
  padding: 4px 3px;
}
.topbar-user-copy strong {
  font-size: 11px;
  color: #122d52;
}
.topbar-user-copy span {
  font-size: 8px;
  color: #7085a0;
}
.account-chevron {
  color: #496887;
}

.executive-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--ex-content-gutter) 0;
  background: #f5f8fc;
}


/* Shared page-width contract: every Executive page follows Dashboard width. */
.load-project-page,
.view-load-projects-page,
.running-projects-page,
.wallet-page {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.executive-footer {
  margin-top: auto;
  padding: 17px 28px 19px;
  color: #607797;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  border-top: 1px solid #e0e8f1;
  background: #f7f9fc;
}
.executive-footer i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 0 8px;
  background: #9fb0c5;
}

.profile-target {
  width: 100%;
  padding: 26px 0 26px;
}

.profile-hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 109px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #d3e2f3;
  border-radius: 11px;
  background: linear-gradient(100deg, #dcebff 0%, #edf5ff 53%, #d5e9ff 100%);
  box-shadow: 0 8px 20px rgba(27, 78, 133, 0.06);
}
.profile-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-left: 37%;
  max-width: 43%;
  color: #0c3f82;
}
.profile-hero-quote {
  font-size: 52px;
  line-height: 0.65;
  font-weight: 800;
  color: #1267d5;
}
.profile-hero-copy p {
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}
.profile-hero-image {
  position: absolute;
  inset: 0 0 0 67%;
  background-image: linear-gradient(
      90deg,
      #e4f0ff 0%,
      rgba(228, 240, 255, 0.35) 20%,
      rgba(228, 240, 255, 0) 48%
    ),
    url("/members/executive/assets/images/profile-hero.jpg");
  background-size: cover;
  background-position: center right;
}
.profile-hero-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(218, 234, 253, 0.9),
    rgba(218, 234, 253, 0) 35%
  );
}

.profile-target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.95fr);
  gap: 12px;
}
.profile-target-left,
.profile-target-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.target-card {
  background: #fff;
  border: 1px solid #dce6f1;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(24, 61, 102, 0.035);
  overflow: hidden;
}
.target-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 19px 13px;
  border-bottom: 1px solid #e3eaf2;
}
.target-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.target-title h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #10284c;
}
.target-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #1468d8;
}
.target-icon svg {
  width: 22px;
  height: 22px;
}
.target-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0b66db;
  font-size: 11px;
  font-weight: 650;
}
.target-card-action svg {
  width: 15px;
  height: 15px;
}
.personal-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 19px 16px;
}
.personal-table > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #e3eaf2;
}
.personal-table > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.personal-table-wide {
  grid-column: 1/-1;
}
.personal-table span {
  font-size: 11px;
  color: #466284;
}
.personal-table strong {
  font-size: 11px;
  color: #102c51;
  line-height: 1.45;
  word-break: break-word;
}
.personal-table-wide {
  grid-template-columns: 150px minmax(0, 1fr) !important;
}
.photo-card {
  padding-bottom: 15px;
}
.photo-card .target-card-head {
  border-bottom: 0;
}
.passport-photo {
  width: 214px;
  height: 250px;
  margin: 3px auto 9px;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(145deg, #dce9fb, #f0f5fc);
  box-shadow: 0 6px 18px rgba(28, 69, 113, 0.08);
  display: grid;
  place-items: center;
  color: #1e62c5;
  font-size: 42px;
  font-weight: 800;
}
.passport-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.passport-caption {
  text-align: center;
  margin: 0;
  color: #3f5e83;
  font-size: 12px;
  line-height: 1.5;
}
.passport-caption span {
  color: #7b90aa;
  font-size: 10px;
}

.security-card .target-card-head {
  padding-bottom: 14px;
}
.protected-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #0a9b5c;
  font-size: 10px;
  font-weight: 750;
}
.protected-badge svg {
  width: 13px;
  height: 13px;
}
.security-list {
  padding: 0 19px 7px;
}
.security-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border-bottom: 1px solid #e2e9f1;
}
.security-item:last-child {
  border-bottom: 0;
}
.security-check {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff7ea;
  color: #0aa263;
}
.security-check svg {
  width: 16px;
  height: 16px;
}
.security-item strong {
  display: block;
  font-size: 12px;
  color: #142f53;
}
.security-item small {
  display: block;
  margin-top: 3px;
  color: #657c98;
  font-size: 9px;
}
.security-action {
  padding: 9px 14px;
  border: 1px solid #a9cafa;
  border-radius: 8px;
  background: #f7fbff;
  color: #0b65d8;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.security-state {
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}
.security-state.is-active {
  background: #e5f8ee;
  color: #07995a;
}
.security-state.is-disabled {
  background: #f8e8e8;
  color: #aa5555;
}

.preferences-card {
  padding-bottom: 15px;
}
.preference-list {
  padding: 0 19px;
}
.preference-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  min-height: 59px;
  border-bottom: 1px solid #e3eaf2;
  text-decoration: none;
}
.preference-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #edf5ff;
  color: #1266d4;
}
.preference-icon svg {
  width: 17px;
  height: 17px;
}
.preference-row strong {
  display: block;
  font-size: 11px;
  color: #102c51;
}
.preference-row small {
  display: block;
  margin-top: 3px;
  color: #7589a1;
  font-size: 8px;
}
.green-security-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 11px 19px 0;
  padding: 10px 11px;
  border: 1px solid #d1eedf;
  border-radius: 9px;
  background: #f0fbf5;
}
.green-security-badge > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ddf5e8;
  color: #079b5b;
}
.green-security-badge svg {
  width: 14px;
  height: 14px;
}
.green-security-badge strong {
  display: block;
  color: #087e50;
  font-size: 9px;
}
.green-security-badge small {
  display: block;
  margin-top: 3px;
  color: #6c887a;
  font-size: 8px;
}

@media (max-width: 1100px) {
  .profile-target-grid {
    grid-template-columns: 1fr;
  }
  .profile-target-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .executive-sidebar {
    width: 270px;
    flex-basis: 270px;
  }
  .executive-topbar {
    height: 66px;
    padding: 0 16px;
  }
  .topbar-clock {
    padding-right: 9px;
  }
  .profile-target {
    padding: 20px 0;
  }
  .profile-hero-banner {
    min-height: 125px;
  }
  .profile-hero-copy {
    margin-left: 8%;
    max-width: 58%;
  }
  .profile-hero-copy p {
    font-size: 13px;
  }
  .profile-hero-image {
    inset: 0 0 0 55%;
  }
  .profile-target-right {
    display: flex;
  }
  .personal-table {
    grid-template-columns: 1fr;
  }
  .personal-table > div {
    grid-template-columns: 125px minmax(0, 1fr);
  }
  .personal-table-wide {
    grid-column: auto;
  }
  .personal-table-wide {
    grid-template-columns: 125px minmax(0, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .topbar-user-copy {
    display: none;
  }
  .profile-hero-copy {
    margin-left: 6%;
    max-width: 64%;
  }
  .profile-hero-copy p {
    font-size: 12px;
  }
  .profile-hero-image {
    inset: 0 0 0 60%;
  }
  .target-card-head {
    padding: 14px 14px 11px;
  }
  .target-card-action {
    font-size: 9px;
  }
  .personal-table {
    padding: 0 14px 13px;
  }
  .personal-table > div,
  .personal-table-wide {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }
  .profile-target-right .passport-photo {
    width: 185px;
    height: 215px;
  }
  .security-list,
  .preference-list {
    padding-left: 14px;
    padding-right: 14px;
  }
  .green-security-badge {
    margin-left: 14px;
    margin-right: 14px;
  }
}

/* Executive Profile — approved target layout refinements */
.profile-target .preference-row-static {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  cursor: default;
}
.profile-target .preference-row-static:hover {
  background: transparent;
}
.profile-target .preference-value {
  min-width: 74px;
  text-align: right;
  color: #315f96;
  font-size: 10px;
  font-weight: 750;
}
.profile-target .photo-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 18px 2px;
}
.profile-target .photo-download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 10px;
  border: 1px solid #a9cafa;
  border-radius: 8px;
  background: #f7fbff;
  color: #0b65d8;
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  transition: 0.18s ease;
}
.profile-target .photo-download-btn:hover {
  border-color: #5f9ff0;
  background: #eef6ff;
  transform: translateY(-1px);
}
.profile-target .photo-download-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}
.profile-target .photo-download-icon svg {
  width: 17px;
  height: 17px;
}
.profile-target .photo-download-arrow {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.profile-target .photo-card {
  padding-bottom: 17px;
}
@media (max-width: 480px) {
  .profile-target .photo-downloads {
    grid-template-columns: 1fr;
    margin-left: 14px;
    margin-right: 14px;
  }
  .profile-target .preference-value {
    min-width: auto;
    font-size: 9px;
  }
}
/* Executive sidebar: Assigned Projects + Wallet dropdown integration.
   This block is isolated to the Executive sidebar and does not alter the global theme. */
.nav-group {
  display: block;
}
.nav-group summary {
  list-style: none;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group-toggle {
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.nav-group-toggle.is-parent-active {
  background: rgba(37, 99, 235, 0.14) !important;
  color: #fff !important;
}
.nav-chevron {
  margin-left: auto;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
  color: #91b1d7;
}
.nav-group[open] .nav-chevron {
  transform: rotate(180deg);
}
.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 2px 0 3px 40px;
  padding-left: 10px;
  border-left: 1px solid rgba(166, 203, 244, 0.18);
}
.nav-subitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #a9c2dd;
  text-decoration: none;
  font-size: 11px;
  font-weight: 650;
  transition: 0.18s ease;
}
.nav-subitem:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-subitem.is-active {
  background: rgba(37, 99, 235, 0.18);
  color: #fff;
}

/* Profile change-password UI: page-scoped, no global theme changes. */
.profile-target .security-action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #9fc4f5;
  border-radius: 9px;
  background: #f7faff;
  color: var(--ex-blue);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}
.profile-target .security-action-button:hover {
  background: #eef5ff;
  border-color: #6fa4ec;
  color: var(--ex-blue-deep);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}
.profile-target .security-action-button:focus-visible {
  outline: none;
  border-color: var(--ex-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}
.profile-target .security-action-button:active {
  transform: translateY(0);
}
body.password-modal-open {
  overflow: hidden;
}
.password-modal[hidden] {
  display: none;
}
.password-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.password-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 27, 50, 0.48);
  backdrop-filter: blur(4px);
}
.password-modal-dialog {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ex-line);
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(13, 42, 72, 0.24);
  padding: 24px;
}
.password-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ex-line);
}
.password-modal-eyebrow {
  display: block;
  color: var(--ex-blue);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.password-modal-head h2 {
  margin: 6px 0 0;
  color: #10284c;
  font-size: 20px;
  letter-spacing: -0.025em;
}
.password-modal-head p {
  margin: 5px 0 0;
  color: #71839a;
  font-size: 10px;
}
.password-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid #dfe7f0;
  border-radius: 9px;
  background: #f7f9fc;
  color: #60758f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.password-modal-close:hover {
  background: #eef4fb;
  color: #10284c;
}
.password-form {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}
.password-field {
  display: grid;
  gap: 7px;
  color: #27415f;
  font-size: 10px;
  font-weight: 750;
}
.password-field > span:first-child b {
  color: #c55a5a;
}
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrap input {
  width: 100%;
  height: 42px;
  border: 1px solid #d9e3ee;
  border-radius: 10px;
  background: #fbfcfe;
  padding: 0 58px 0 12px;
  color: #18314f;
  font: inherit;
  font-size: 11px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.password-input-wrap input:focus {
  border-color: #72a5e7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.password-visibility {
  position: absolute;
  right: 7px;
  border: 0;
  background: transparent;
  color: #607897;
  font-size: 9px;
  font-weight: 750;
  padding: 7px;
  cursor: pointer;
}
.password-visibility:hover {
  color: var(--ex-blue);
}
.password-rules {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  border: 1px solid #dfe8f2;
  border-radius: 12px;
  background: #f7fafd;
}
.password-rules strong {
  font-size: 10px;
  color: #294563;
  margin-bottom: 2px;
}
.password-rules span {
  position: relative;
  padding-left: 20px;
  color: #7a8da4;
  font-size: 9px;
}
.password-rules span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e7edf4;
}
.password-rules span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #8da0b6;
  border-bottom: 1.5px solid #8da0b6;
  transform: rotate(-45deg);
}
.password-rules span.is-valid {
  color: #087d53;
  font-weight: 700;
}
.password-rules span.is-valid::before {
  background: #dcf6e9;
}
.password-rules span.is-valid::after {
  border-color: #0b9967;
}
.password-rules span.is-invalid {
  color: #a36b63;
}
.password-form-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fbfd;
  border: 1px solid #e6edf4;
  color: #788ba2;
  font-size: 9px;
  line-height: 1.5;
}
.password-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 4px;
}
.password-form-actions .btn {
  gap: 8px;
}
.password-form-actions .btn-secondary {
  border: 1px solid #d9e3ee;
  background: #fff;
  color: #536b87;
}
.password-form-actions .btn-secondary:hover {
  background: #f5f8fc;
}
.password-form-actions .btn-primary {
  min-width: 136px;
  min-height: 42px;
  border: 1px solid var(--ex-blue);
  background: var(--ex-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}
.password-form-actions .btn-primary:hover {
  background: var(--ex-blue-deep);
  border-color: var(--ex-blue-deep);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.23);
}
.password-form-actions .btn-primary:focus-visible {
  outline: none;
  background: var(--ex-blue-deep);
  border-color: var(--ex-blue-deep);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16),
    0 8px 18px rgba(37, 99, 235, 0.18);
}
.password-form-actions .btn-primary:active {
  background: #1e40af;
  border-color: #1e40af;
  transform: translateY(0);
}
@media (max-width: 600px) {
  .password-modal {
    padding: 12px;
  }
  .password-modal-dialog {
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 16px;
  }
  .password-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .password-form-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   Executive responsive shell — canonical layout foundation
   - Desktop: fixed sidebar + fixed topbar/footer shell.
   - Tablet/mobile: sidebar becomes a fixed drawer.
   - Content is the only primary scrolling region.
   - Wide content must scroll inside its own component wrapper.
   ============================================================ */

:root {
  --executive-sidebar-width: 255px;
  --executive-sidebar-drawer-width: 270px;
  --executive-topbar-height: 70px;
  --executive-footer-height: 58px;
  --executive-content-gutter: 28px;
  --executive-mobile-gutter: 14px;
}

html,
body.executive-app {
  height: 100%;
  min-height: 100%;
  min-width: 0;
  overflow: hidden;
}

body.executive-app {
  overflow-x: hidden;
}

.executive-shell {
  display: block;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.executive-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--executive-sidebar-width);
  flex: 0 0 var(--executive-sidebar-width);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 30;
}

.executive-main {
  min-width: 0;
  width: calc(100% - var(--executive-sidebar-width));
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: var(--executive-sidebar-width);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.executive-topbar {
  flex: 0 0 var(--executive-topbar-height);
  width: 100%;
  height: var(--executive-topbar-height);
  min-width: 0;
  box-sizing: border-box;
}

.executive-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--executive-content-gutter);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.executive-content > * {
  min-width: 0;
  max-width: 100%;
}

.executive-footer {
  flex: 0 0 auto;
  min-width: 0;
  min-height: var(--executive-footer-height);
  box-sizing: border-box;
  margin-top: 0;
}

.mobile-menu-button {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

/* Tablet + mobile: drawer navigation. */
@media (max-width: 1199px) {
  .executive-sidebar {
    z-index: 100;
    width: var(--executive-sidebar-drawer-width);
    flex-basis: var(--executive-sidebar-drawer-width);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.2);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .executive-sidebar {
    transform: translateX(0);
    z-index: 100;
  }

  .executive-main {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .sidebar-close,
  .mobile-menu-button {
    display: flex;
  }

  .sidebar-close {
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-button {
    flex: 0 0 34px;
    flex-direction: column;
    gap: 4px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ex-line);
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
  }

  .mobile-menu-button span {
    width: 14px;
    height: 1.5px;
    background: #23466f;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(7, 24, 48, 0.52);
    backdrop-filter: blur(2px);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .executive-topbar {
    padding-inline: 22px;
  }

  .executive-topbar > *,
  .topbar-welcome,
  .topbar-actions {
    min-width: 0;
  }

  .executive-content {
    padding: 18px 22px 22px;
  }

  .executive-card,
  .target-card,
  .dashboard-card,
  .panel-card,
  .card,
  .section-card {
    min-width: 0;
    max-width: 100%;
  }

  .card-head,
  .target-card-head,
  .panel-head,
  .section-head,
  .executive-section-head {
    flex-wrap: wrap;
  }

  .table-responsive,
  .table-wrap,
  .data-table-wrap,
  .executive-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }

  .form-grid,
  .field-grid,
  .filter-grid {
    min-width: 0;
  }

  .action-row,
  .form-actions,
  .toolbar-actions {
    flex-wrap: wrap;
  }
}

/* Mobile: compact header and safe content gutters. */
@media (max-width: 767px) {
  /* Mobile shell: return scrolling to the document so Android/Chrome can
     provide its native pull-to-refresh gesture. */
  html,
  body.executive-app {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  .executive-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .executive-main {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  /* Mobile topbar is viewport-fixed so fast document scrolling cannot carry it
     away. The main shell reserves the same space to keep the first content
     section visually unchanged. */
  .executive-main {
    padding-top: 64px;
  }

  .executive-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 90;
    transform: translateZ(0);
    flex: 0 0 auto;
    height: 64px;
    min-height: 64px;
    padding: 8px var(--executive-mobile-gutter);
    gap: 8px;
  }

  .mobile-menu-button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
  }

  .mobile-menu-button span {
    width: 16px;
    height: 1.6px;
  }

  .topbar-welcome {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding: 0;
  }

  .topbar-welcome-eyebrow {
    font-size: 7px;
    line-height: 1.1;
    letter-spacing: 0.14em;
  }

  .topbar-welcome h1,
  .topbar-welcome strong {
    font-size: 16px;
    line-height: 1.15;
  }

  .topbar-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 4px;
  }

  /* Clock remains functional on desktop/tablet but is intentionally removed
     from the mobile visual system to protect title/action space. */
  .topbar-clock {
    display: none;
  }

  .dashboard-notifications {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
  }

  .dashboard-notifications svg {
    width: 21px;
    height: 21px;
  }

  .dashboard-notifications > span {
    right: 1px;
    top: 1px;
    min-width: 16px;
    height: 16px;
    font-size: 8px;
  }

  /* Keep the notification panel inside the mobile viewport. */
  .dashboard-notification-popover {
    top: calc(100% + 8px);
    right: var(--executive-mobile-gutter);
    left: auto;
    width: min(255px, calc(100vw - (var(--executive-mobile-gutter) * 2)));
    max-width: calc(100vw - (var(--executive-mobile-gutter) * 2));
    box-sizing: border-box;
  }

  .topbar-account-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    padding: 2px;
    border-radius: 11px;
  }

  .topbar-account .avatar-xs {
    width: 36px;
    height: 36px;
  }

  .topbar-user-copy,
  .account-chevron {
    display: none;
  }

  .executive-content {
    flex: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 14px var(--executive-mobile-gutter) 20px;
    overflow: visible;
    overscroll-behavior: auto;
  }

  .executive-footer {
    min-height: 0;
    padding: 12px var(--executive-mobile-gutter);
    flex-direction: column;
  }

  .card-head,
  .target-card-head,
  .panel-head,
  .section-head,
  .executive-section-head {
    gap: 10px;
  }

  .action-row,
  .form-actions,
  .toolbar-actions,
  .card-actions {
    width: 100%;
    align-items: stretch;
  }

  .action-row > *,
  .form-actions > *,
  .toolbar-actions > *,
  .card-actions > * {
    max-width: 100%;
  }

  .btn,
  button.btn,
  .primary-btn,
  .secondary-btn {
    min-height: 40px;
  }

  .table-responsive,
  .table-wrap,
  .data-table-wrap,
  .executive-table-wrap {
    margin-inline: 0;
  }

  .password-modal {
    z-index: 120;
  }
}

@media (max-width: 480px) {
  .executive-content {
    padding-inline: 14px;
  }

  .executive-topbar {
    padding-inline: 14px;
  }

  .executive-footer {
    padding-inline: 14px;
  }
}

@media (max-width: 390px) {
  .executive-content {
    padding-inline: 10px;
  }

  .executive-topbar {
    padding-inline: 10px;
  }

  .executive-footer {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .executive-sidebar {
    transition: none;
  }
}

/* ============================================================
   Responsive shell hardening — Phase 1 final regression
   - Keep the existing visual shell unchanged.
   - Lock background content while the mobile/tablet drawer is open.
   - Preserve a dedicated content scroll region on touch devices.
   - Respect mobile safe-area insets and browser text scaling.
   ============================================================ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.executive-content {
  scrollbar-gutter: stable;
  overscroll-behavior-y: contain;
}

body.sidebar-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.sidebar-open .executive-content {
  touch-action: none;
}

@media (max-width: 767px) {
  .executive-content {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    overflow: visible;
    overscroll-behavior-y: auto;
    scrollbar-gutter: auto;
  }

  .executive-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* Executive bank details — locked member card */
.bank-details-card .target-card-head {
  align-items: center;
}
.bank-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}
.bank-status-badge.is-locked {
  color: #166534;
  background: #e7f8ee;
}
.bank-status-badge.is-editable {
  color: var(--ex-blue-deep);
  background: #eaf2ff;
}
.bank-feedback {
  margin: 14px 18px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 11px;
}
.bank-feedback ul {
  margin: 0;
  padding-left: 18px;
}
.bank-feedback-success {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}
.bank-feedback-error {
  color: #991b1b;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
.bank-locked-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 14px 18px 0;
  padding: 12px;
  border: 1px solid #dbe7f3;
  border-radius: 9px;
  background: #f7faff;
}
.bank-locked-note strong {
  color: #163b68;
  font-size: 11px;
}
.bank-locked-note span {
  color: #607797;
  font-size: 10px;
  line-height: 1.5;
}
.bank-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  padding: 14px 18px 16px;
}
.bank-detail-grid > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #e6edf5;
}
.bank-detail-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.bank-detail-grid span {
  color: #66809f;
  font-size: 10px;
}
.bank-detail-grid strong {
  color: #102c51;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bank-detail-wide {
  grid-column: 1 / -1;
}
.bank-details-form {
  padding: 0;
}
.bank-details-form .bank-detail-grid {
  padding-bottom: 4px;
}
.bank-details-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 0;
}
.bank-details-form label > span {
  color: #466284;
  font-size: 10px;
  font-weight: 700;
}
.bank-details-form input,
.bank-details-form select,
.bank-details-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7e3f0;
  border-radius: 8px;
  padding: 10px 11px;
  color: #102c51;
  background: #fff;
  font: inherit;
  font-size: 11px;
  outline: none;
}
.bank-details-form textarea {
  resize: vertical;
}
.bank-details-form input:focus,
.bank-details-form select:focus,
.bank-details-form textarea:focus {
  border-color: #5a96e8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}
.bank-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 18px;
  border-top: 1px solid #e3eaf2;
}
.bank-form-footer small {
  color: #6a819e;
  font-size: 10px;
  line-height: 1.5;
}
.bank-save-button {
  flex: 0 0 auto;
  border: 1px solid #1f6fe5;
  border-radius: 8px;
  padding: 10px 13px;
  color: #fff;
  background: var(--ex-blue);
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
@media (max-width: 767px) {
  .bank-detail-grid {
    grid-template-columns: 1fr;
  }
  .bank-detail-wide {
    grid-column: auto;
  }
  .bank-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .bank-save-button {
    width: 100%;
  }
}
