.identity-gateway {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(390px, 1.15fr) minmax(420px, .85fr);
  background: #f7f9fc;
}

.identity-story {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  padding: clamp(30px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgb(88 214 151 / 30%) 0 9%, transparent 9.2%),
    radial-gradient(circle at 91% 17%, transparent 0 15%, rgb(255 255 255 / 8%) 15.2% 15.8%, transparent 16%),
    linear-gradient(145deg, #071a34 0%, #0b3557 48%, #087552 100%);
}

.identity-story::after {
  content: '';
  position: absolute;
  width: min(52vw, 690px);
  aspect-ratio: 1;
  left: -25%;
  bottom: -42%;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgb(255 255 255 / 3%), 0 0 0 180px rgb(255 255 255 / 2%);
}

.identity-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.identity-brand > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #073a33;
  background: #74e1ae;
  font-weight: 900;
  box-shadow: inset 0 1px rgb(255 255 255 / 45%);
}

.identity-story__copy {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.identity-kicker,
.platform-heading p,
.platform-panel header p,
.control-dialog header p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

.identity-kicker { color: #74e1ae; }

.identity-story__copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(46px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.06em;
}

.identity-story__copy > p:not(.identity-kicker) {
  max-width: 590px;
  margin: 26px 0 34px;
  color: rgb(255 255 255 / 76%);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
}

.identity-proof { display: flex; flex-wrap: wrap; gap: 22px; }
.identity-proof span { display: flex; align-items: center; gap: 8px; color: rgb(255 255 255 / 82%); font-weight: 700; }
.identity-proof b { color: #74e1ae; font-size: 11px; letter-spacing: .08em; }
.identity-story > small { position: relative; z-index: 1; color: rgb(255 255 255 / 52%); }

.identity-access {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 84px);
  background:
    linear-gradient(rgb(246 249 252 / 88%), rgb(246 249 252 / 95%)),
    radial-gradient(circle at 30% 20%, #dff6ea, transparent 36%);
}

.access-card { width: min(100%, 460px); }
.access-badge { color: #087a4e; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.access-card h2 { margin: 12px 0 8px; font-size: clamp(32px, 4vw, 44px); line-height: 1; letter-spacing: -.045em; }
.access-card > div > p { margin: 0 0 30px; color: #667085; font-size: 16px; line-height: 1.5; }

.access-form { display: grid; gap: 18px; }
.access-form label > span:first-child { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 750; }
.access-form input,
.control-form-grid input,
.control-form-grid select,
.integration-form input,
.integration-form select {
  width: 100%;
  height: 52px;
  border: 1px solid #cfd9e7;
  border-radius: 13px;
  padding: 0 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}

.access-form input:focus,
.control-form-grid input:focus,
.control-form-grid select:focus { border-color: #16805b; box-shadow: 0 0 0 4px rgb(22 128 91 / 10%); outline: 0; }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 64px; }
.password-control button { position: absolute; top: 7px; right: 7px; height: 38px; padding: 0 12px; border-radius: 9px; color: #126044; background: #eaf7f0; font-size: 12px; font-weight: 800; }
.access-form__row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.remember { display: flex; align-items: center; gap: 8px; color: #475467; font-size: 13px; }
.remember input { width: 17px; height: 17px; }
.remember span { margin: 0 !important; }
.access-link,
.access-back { padding: 0; color: #087a4e; background: transparent; font-size: 13px; font-weight: 800; }
.access-back { margin-bottom: 28px; }

.access-submit,
.secondary-access {
  min-height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #087a4e, #075f61);
  font-weight: 850;
  box-shadow: 0 10px 24px rgb(8 122 78 / 20%);
}
.access-submit:disabled { opacity: .58; cursor: wait; }
.access-submit b { font-size: 22px; }
.secondary-access { justify-content: center; width: 100%; margin-bottom: 12px; color: #075f4b; background: #e8f6ef; box-shadow: none; }
.access-card footer { margin-top: 34px; padding-top: 20px; border-top: 1px solid #e2e8f0; color: #667085; font-size: 12px; }
.security-pulse { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 5px #eaf8ef; }
.access-message { margin: 18px 0 0 !important; padding: 12px 14px; border-radius: 12px; color: #9a3412 !important; background: #fff1e8; font-size: 13px !important; }
.mfa-code { text-align: center; font-size: 28px; font-weight: 850; letter-spacing: .28em; }
.mfa-enrollment { margin: -12px 0 20px; padding: 14px; border: 1px solid #b9e5ce; border-radius: 13px; background: #effbf5; }
.mfa-enrollment span { display: block; color: #547063; font-size: 12px; }
.mfa-enrollment code { display: block; margin: 6px 0; word-break: break-all; color: #063f31; font-size: 14px; font-weight: 800; }
.mfa-enrollment .access-link { display: inline-block; margin: 4px 12px 0 0; text-decoration: none; }
.mfa-qr-wrap { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 18px; align-items: center; }
.mfa-qr-wrap img { width: min(320px, 100%); height: auto; aspect-ratio: 1; padding: 24px; border: 1px solid #cce7da; border-radius: 16px; background: #fff; object-fit: contain; }
.mfa-qr-wrap strong { display: block; margin-bottom: 7px; color: #062d25; font-size: 16px; }
.mfa-qr-wrap span { line-height: 1.45; }
.mfa-manual-fallback { margin-top: 12px; border-top: 1px solid #d5e9df; padding-top: 10px; }
.mfa-manual-fallback summary { cursor: pointer; color: #087358; font-size: 12px; font-weight: 800; }
.recovery-link { width: 100%; margin-top: 18px; text-align: center; }
.recovery-codes { padding: 18px; border: 1px dashed #8bbda6; border-radius: 13px; color: #0b513b; background: #f3fbf7; text-align: center; font-size: 15px; line-height: 1.7; }
.tenant-chooser { display: grid; gap: 10px; }
.tenant-chooser button { display: grid; grid-template-columns: 42px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px; padding: 13px; border: 1px solid #dbe4ee; border-radius: 13px; background: #fff; text-align: left; }
.tenant-chooser button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: #087a4e; background: #eaf8ef; font-weight: 850; }
.tenant-chooser button strong { align-self: end; }
.tenant-chooser button small { align-self: start; color: #667085; }
.tenant-chooser button b { grid-column: 3; grid-row: 1 / 3; color: #087a4e; font-size: 20px; }

.platform-console { width: 100%; max-width: 100%; min-height: 100dvh; overflow-x: hidden; background: #f2f6fb; color: #10233f; }
.platform-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 64px); color: #fff; background: #081c35; }
.platform-header > *,
.platform-header .identity-brand,
.platform-main > *,
.platform-grid > *,
.control-dialog *,
.control-form-grid > * { min-width: 0; }
.identity-brand.dark > span { width: 38px; height: 38px; border-radius: 11px; }
.identity-brand.dark small { margin-left: 2px; color: #73e1b1; font-size: 10px; letter-spacing: .12em; }
.platform-header > div:last-child { display: flex; align-items: center; gap: 18px; }
.platform-header button { padding: 10px 14px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 10px; color: #fff; background: rgb(255 255 255 / 7%); }
.platform-main { width: min(1460px, calc(100% - 40px)); margin: auto; padding: 42px 0 60px; }
.platform-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.platform-heading p,
.platform-panel header p,
.control-dialog header p { color: #087a4e; }
.platform-heading h1 { margin: 0 0 8px; font-size: 42px; letter-spacing: -.05em; }
.platform-heading span { color: #667085; }
.platform-heading button { min-height: 48px; padding: 0 18px; border-radius: 12px; color: #fff; background: #087a4e; font-weight: 800; }
.platform-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 28px; min-height: 174px; margin-bottom: 20px; padding: 30px 32px; overflow: hidden; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #09294b 0%, #0b6457 58%, #07905d 100%); box-shadow: 0 18px 40px rgb(9 41 75 / 15%); }
.platform-hero::before, .platform-hero::after { position: absolute; border: 1px solid rgb(255 255 255 / 13%); border-radius: 50%; content: ''; pointer-events: none; }
.platform-hero::before { width: 270px; height: 270px; right: -62px; top: -152px; }
.platform-hero::after { width: 170px; height: 170px; right: -12px; top: -108px; background: rgb(255 255 255 / 5%); }
.platform-hero > * { position: relative; z-index: 1; }
.platform-hero p { margin: 0 0 8px; color: #7df0bb; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.platform-hero h2 { margin: 0 0 8px; color: #fff; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.045em; }
.platform-hero > div:first-child > span { display: block; max-width: 680px; color: rgb(255 255 255 / 73%); font-size: 13px; line-height: 1.5; }
.platform-hero__value { min-width: 230px; padding: 17px 20px; border: 1px solid rgb(255 255 255 / 15%); border-radius: 16px; background: rgb(4 28 51 / 28%); backdrop-filter: blur(8px); }
.platform-hero__value small, .platform-hero__value strong, .platform-hero__value span { display: block; }
.platform-hero__value small { color: #9aecc6; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.platform-hero__value strong { margin: 5px 0 4px; color: #fff; font-size: 28px; }
.platform-hero__value span { color: rgb(255 255 255 / 65%); font-size: 10px; }
.platform-hero > button { display: flex; align-items: center; gap: 18px; min-height: 52px; padding: 0 18px; border-radius: 13px; color: #07513e; background: #fff; font-weight: 850; white-space: nowrap; }
.platform-hero > button b { color: #0b8c5d; font-size: 20px; }
.platform-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.platform-kpi { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 17px; border: 1px solid #dbe3ee; border-radius: 16px; background: #fff; box-shadow: 0 2px 5px rgb(16 24 40 / 4%); }
.platform-kpi > b { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; color: #087a4e; background: #e9f8f0; font-size: 10px; }
.platform-kpi > div { min-width: 0; }
.platform-kpi span, .platform-kpi small { display: block; color: #667085; }
.platform-kpi span { font-size: 11px; font-weight: 750; }
.platform-kpi strong { display: block; margin: 3px 0 2px; font-size: 25px; letter-spacing: -.04em; }
.platform-kpi small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.platform-kpi[data-tone="blue"] > b { color: #175cd3; background: #eaf2ff; }
.platform-kpi[data-tone="violet"] > b { color: #6938b9; background: #f2edff; }
.platform-kpi[data-tone="amber"] > b { color: #b54708; background: #fff4e5; }
.platform-kpi[data-tone="danger"] > b { color: #b42318; background: #fff0ef; }
.platform-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(320px, .85fr); gap: 22px; }
.platform-panel { overflow: hidden; border: 1px solid #dbe3ee; border-radius: 18px; background: #fff; box-shadow: 0 3px 8px rgb(16 24 40 / 4%); }
.platform-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 21px 22px; border-bottom: 1px solid #e4eaf2; }
.platform-panel header p { margin-bottom: 5px; font-size: 10px; }
.platform-panel header h2 { margin: 0; font-size: 20px; }
.platform-panel header > span { padding: 7px 10px; border-radius: 99px; color: #475467; background: #eef2f6; font-size: 12px; font-weight: 750; }
.platform-table { max-height: 520px; overflow: auto; }
.platform-client-tools { display: grid; grid-template-columns: minmax(240px, 1fr) 170px 170px; gap: 10px; padding: 13px 18px; border-bottom: 1px solid #e4eaf2; background: #f9fbfd; }
.platform-client-tools select, .platform-client-search { min-height: 42px; border: 1px solid #d6e0eb; border-radius: 11px; color: #26364d; background: #fff; }
.platform-client-tools select { padding: 0 11px; }
.platform-client-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.platform-client-search span { color: #087a4e; font-size: 18px; }
.platform-client-search input { width: 100%; height: 38px; padding: 0; border: 0; outline: 0; background: transparent; }
.platform-client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 12px; max-height: 610px; padding: 14px; overflow: auto; background: #f7f9fc; }
.platform-client-grid > .empty-state { grid-column: 1 / -1; }
.portfolio-card { min-width: 0; overflow: hidden; border: 1px solid #dce5ef; border-radius: 16px; background: #fff; box-shadow: 0 3px 9px rgb(16 35 63 / 4%); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.portfolio-card:hover { transform: translateY(-2px); border-color: #b9d9ca; box-shadow: 0 10px 24px rgb(16 35 63 / 9%); }
.portfolio-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; }
.portfolio-card .platform-company__logo { width: 52px; height: 52px; flex-basis: 52px; border-radius: 15px; }
.portfolio-card .platform-company strong { color: #10233f; font-size: 15px; }
.portfolio-card .platform-company small { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-card .platform-company em { color: #7a8799; }
.portfolio-card__plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 16px; padding: 12px 13px; border-radius: 12px; background: linear-gradient(135deg, #f2f8ff, #f1faf6); }
.portfolio-card__plan span, .portfolio-card__plan strong { display: block; }
.portfolio-card__plan span { color: #52637a; font-size: 10px; font-weight: 750; }
.portfolio-card__plan strong { margin-top: 3px; color: #0c5b46; font-size: 18px; }
.portfolio-card__plan strong small { color: #718096; font-size: 9px; font-weight: 650; }
.portfolio-card__plan > b { padding: 5px 7px; border-radius: 99px; color: #087a4e; background: #dcf5e7; font-size: 9px; }
.portfolio-card__plan > b.subscription-trialing { color: #175cd3; background: #eaf2ff; }
.portfolio-card__metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 13px 16px 0; border: 1px solid #e5ebf2; border-radius: 12px; }
.portfolio-card__metrics > div { padding: 9px; text-align: center; }
.portfolio-card__metrics > div + div { border-left: 1px solid #e5ebf2; }
.portfolio-card__metrics strong, .portfolio-card__metrics span { display: block; }
.portfolio-card__metrics strong { color: #10233f; font-size: 16px; }
.portfolio-card__metrics span { margin-top: 2px; color: #7a8799; font-size: 9px; }
.portfolio-card__contact { min-height: 52px; margin: 0 16px; padding: 12px 0; }
.portfolio-card__contact span, .portfolio-card__contact strong, .portfolio-card__contact small { display: block; }
.portfolio-card__contact span { color: #8491a3; font-size: 9px; text-transform: uppercase; }
.portfolio-card__contact strong { margin-top: 3px; overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.portfolio-card__contact small { margin-top: 2px; color: #087a4e; font-size: 9px; }
.portfolio-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 10px 16px; border-top: 1px solid #e9eef4; background: #fbfcfe; }
.portfolio-card > footer > span { color: #748196; font-size: 9px; }
.portfolio-card > footer .platform-manage-button { flex: 0 0 auto; }
.portfolio-card > footer .platform-manage-button b { margin-left: 7px; }
.platform-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) 110px 110px 90px 108px; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid #edf1f6; }
.platform-row strong, .platform-row small { display: block; }
.platform-row small { margin-top: 4px; color: #667085; }
.platform-company { display: flex; align-items: center; gap: 12px; min-width: 0; }
.platform-company > div { min-width: 0; }
.platform-company__logo { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; overflow: hidden; border: 1px solid #dbe6ef; border-radius: 13px; color: #087a4e; background: #eaf8ef; font-weight: 850; }
.platform-company__logo img { width: 100%; height: 100%; object-fit: cover; }
.platform-company em { display: block; margin-top: 4px; color: #16805b; font-size: 10px; font-style: normal; font-weight: 750; }
.status-chip { justify-self: start; padding: 6px 9px; border-radius: 99px; color: #087a4e; background: #eaf8ef; font-size: 11px; font-weight: 800; }
.platform-activity { max-height: 664px; overflow: auto; }
.audit-row { display: grid; grid-template-columns: 9px 1fr; gap: 11px; padding: 15px 20px; border-bottom: 1px solid #edf1f6; }
.audit-row > i { width: 9px; height: 9px; margin-top: 4px; border: 2px solid #b8e7d0; border-radius: 50%; background: #16a36a; box-shadow: 0 0 0 4px #effaf4; }
.audit-row strong, .audit-row span, .audit-row small { display: block; }
.audit-row strong { font-size: 12px; }
.audit-row span { margin-top: 4px; color: #667085; font-size: 10px; }
.audit-row small { margin-top: 3px; color: #087a4e; font-size: 9px; }

.control-dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 80px rgb(8 28 53 / 30%); }
.control-dialog.profile-dialog { width: min(940px, calc(100% - 24px)); }
.control-dialog::backdrop { background: rgb(8 28 53 / 58%); backdrop-filter: blur(5px); }
.control-dialog form { padding: 26px; }
.control-dialog header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.control-dialog header h2 { margin: 0 0 5px; font-size: 28px; }
.control-dialog header span { color: #667085; }
.control-dialog header button { width: 40px; height: 40px; border-radius: 11px; background: #edf2f7; font-size: 22px; }
.control-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.control-form-grid.compact-grid { margin: 0; }
.span-2 { grid-column: 1 / -1; }
.control-form-grid label > span,
.integration-form label > span { display: block; margin-bottom: 6px; color: #475467; font-size: 12px; font-weight: 750; }
.one-time-secret { margin: 14px 0; padding: 15px; border: 1px solid #f3c88a; border-radius: 13px; color: #713b08; background: #fff8ea; }
.one-time-secret strong, .one-time-secret code { display: block; }
.one-time-secret code { margin: 8px 0; overflow-wrap: anywhere; font-size: 13px; }
.onboarding-message { margin: 0 0 14px !important; }
.status-chip.status-suspended,
.status-chip.status-cancelled { color: #b42318; background: #fff0ef; }
.platform-manage-button { min-height: 36px; padding: 0 12px; border-radius: 9px; color: #087a4e; background: #eaf8ef; font-size: 11px; font-weight: 850; }
.platform-manage-button:hover:not(:disabled) { color: #fff; background: #087a4e; }
.tenant-admin-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tenant-admin-summary > div { padding: 13px 14px; border: 1px solid #dce4ee; border-radius: 12px; background: #f8fafc; }
.tenant-admin-summary span, .tenant-admin-summary strong, .tenant-admin-summary small { display: block; }
.tenant-admin-summary span { margin-bottom: 5px; color: #667085; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tenant-admin-summary small { margin-top: 4px; color: #667085; font-size: 11px; overflow-wrap: anywhere; }
.tenant-admin-grid { margin: 0; }
.tenant-access-reset { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 15px; border: 1px solid #f4c7ab; border-radius: 13px; background: #fff9f5; }
.tenant-access-reset p { margin: 0 0 4px; color: #b54708; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.tenant-access-reset strong, .tenant-access-reset span { display: block; }
.tenant-access-reset span { margin-top: 3px; color: #667085; font-size: 12px; }
.tenant-access-reset .activation-result { grid-column: 1 / -1; margin: 0; }
.tenant-access-reset .activation-result code { overflow-wrap: anywhere; }
.tenant-brand-editor { display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: center; margin: 18px 0; padding: 16px; border: 1px solid #dce4ee; border-radius: 14px; background: linear-gradient(135deg, #f8fbfc, #f2faf6); }
.tenant-logo-control { display: grid; grid-template-columns: 66px 1fr; grid-template-rows: auto auto; align-items: center; gap: 3px 12px; cursor: pointer; }
.tenant-logo-control input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.tenant-logo-preview { grid-row: 1 / 3; display: grid; width: 66px; height: 66px; place-items: center; overflow: hidden; border: 1px dashed #89bba6; border-radius: 17px; color: #087a4e; background: #fff; font-size: 21px; }
.tenant-logo-preview img { width: 100%; height: 100%; object-fit: cover; }
.tenant-logo-control > strong { align-self: end; color: #0d5f49; font-size: 12px; }
.tenant-logo-control > small { align-self: start; color: #667085; font-size: 10px; }
.tenant-brand-editor > div > p,
.tenant-contact-card > div:first-child > p { margin: 0 0 5px; color: #087a4e; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.tenant-brand-editor > div > strong,
.tenant-brand-editor > div > span { display: block; }
.tenant-brand-editor > div > span { margin-top: 5px; color: #667085; font-size: 11px; }
.remove-logo-option,
.remove-photo-option { display: inline-flex !important; align-items: center; gap: 7px; margin-top: 10px; color: #b42318; font-size: 11px; font-weight: 750; }
.remove-logo-option input,
.remove-photo-option input { width: 17px !important; height: 17px !important; margin: 0; accent-color: #b42318; }
.tenant-contact-card { margin: 18px 0; padding: 15px; border: 1px solid #dce4ee; border-radius: 13px; background: #fff; }
.tenant-contact-card > div:first-child { margin-bottom: 13px; }
.tenant-contact-card > div:first-child > span { color: #667085; font-size: 11px; }
.tenant-branch-card { padding: 15px; border: 1px solid #dce4ee; border-radius: 13px; background: #f8fafc; }
.tenant-branch-card > div:first-child { margin-bottom: 12px; }
.tenant-branch-card p { margin: 0 0 4px; color: #087a4e; font-size: 10px; font-weight: 850; }
.tenant-branch-card > div:first-child > span { color: #667085; font-size: 11px; }
.tenant-branch-card .control-form-grid { margin: 0; }

.integration-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.integration-principles article { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.integration-principles article > span { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 10px; color: var(--success); background: var(--success-soft); font-size: 11px; font-weight: 850; }
.integration-principles strong, .integration-principles small { display: block; }
.integration-principles small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.integration-panel { margin-bottom: 18px; }
.integration-list { border-top: 1px solid var(--line-soft); }
.integration-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(160px, 1fr) 120px auto; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.integration-row strong, .integration-row small { display: block; }
.integration-row small { margin-top: 4px; color: var(--muted); }
.scope-list { display: flex; flex-wrap: wrap; gap: 5px; }
.scope-list span { padding: 4px 7px; border-radius: 7px; color: #155d46; background: #eaf8ef; font-size: 10px; font-weight: 750; }
.integration-actions { display: flex; gap: 6px; }
.integration-actions button { padding: 8px 10px; border-radius: 9px; color: #344054; background: #edf2f7; font-size: 11px; font-weight: 750; }
.integration-actions button.danger { color: #b42318; background: #fff0ef; }
.integration-form { display: grid; gap: 14px; }
.media-file-field input[type="file"] { height: auto; padding: 12px 14px; }
.media-file-field small { display: block; margin-top: 5px; color: #667085; font-size: 10px; }
.section-actions { display: flex; align-items: center; gap: 10px; }
.user-status-action { padding: 8px 10px; border-radius: 9px; color: #475467; background: #edf2f7; font-size: 11px; font-weight: 750; }
.form-explanation { margin: 0; color: #667085; font-size: 12px; line-height: 1.5; }
.scope-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scope-picker label { display: flex; align-items: center; gap: 7px; padding: 10px; border: 1px solid #dce4ee; border-radius: 10px; font-size: 12px; }
.scope-picker input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; padding: 0; accent-color: #087a4e; box-shadow: none; }
.scope-picker input[type="checkbox"] + span { margin: 0; }
.profile-dialog .integration-form { gap: 16px; }
.profile-section { padding: 17px; border: 1px solid #dce4ee; border-radius: 15px; background: #fff; }
.profile-section__heading { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.profile-section__heading > span { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 10px; color: #087a4e; background: #eaf8ef; font-size: 10px; font-weight: 900; }
.profile-section__heading strong,
.profile-section__heading small { display: block; }
.profile-section__heading small { margin-top: 3px; color: #667085; font-size: 11px; }
.profile-identity-section { background: linear-gradient(135deg, #fff, #f5fbf8); }
.profile-identity-layout { display: grid; grid-template-columns: 132px 1fr; gap: 18px; align-items: start; }
.profile-photo-control { display: grid; justify-items: center; cursor: pointer; text-align: center; }
.profile-photo-control > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.profile-photo-preview { display: grid; width: 104px; height: 104px; place-items: center; overflow: hidden; border: 2px dashed #b5d8c8; border-radius: 50%; color: #087a4e; background: #fff; font-size: 28px; font-weight: 900; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-control b { margin-top: 9px; color: #087a4e; font-size: 11px; }
.profile-photo-control small { margin-top: 3px; color: #667085; font-size: 9px; }
.compact-grid label > small { display: block; margin-top: 5px; color: #667085; font-size: 10px; }
.channel-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.channel-switches label,
.notification-grid label { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid #dce4ee; border-radius: 11px; background: #f9fbfd; }
.channel-switches input,
.notification-grid input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #087a4e; }
.channel-switches b, .channel-switches small,
.notification-grid b, .notification-grid small { display: block; }
.channel-switches b,
.notification-grid b { color: #25334a; font-size: 11px; }
.channel-switches small,
.notification-grid small { margin-top: 2px; color: #667085; font-size: 9px; line-height: 1.3; }
.notification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.notification-grid label:has(input:checked),
.channel-switches label:has(input:checked) { border-color: #a9d9c1; background: #effaf4; }
.notification-grid label:has(input:disabled) { opacity: .48; }
.secure-invitation-note { padding: 12px 14px; border-radius: 11px; color: #155d46; background: #edf9f3; }

@media (max-width: 1000px) {
  .identity-gateway { grid-template-columns: 1fr; }
  .identity-story { min-height: auto; padding: 30px; }
  .identity-story__copy { margin: 80px 0 50px; }
  .identity-story__copy h1 { font-size: clamp(42px, 10vw, 68px); }
  .identity-access { min-height: auto; padding: 55px 24px; }
  .platform-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-hero { grid-template-columns: 1fr auto; }
  .platform-hero > div:first-child { grid-column: 1 / -1; }
  .integration-principles { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .mfa-qr-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mfa-qr-wrap img { width: min(320px, 100%); }
  .identity-story { display: none; }
  .identity-access { min-height: 100dvh; padding: 30px 20px; }
  .access-card h2 { font-size: 35px; }
  .platform-header {
    height: auto;
    min-height: 72px;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 11px 12px;
  }
  .platform-header .identity-brand { width: 100%; }
  .platform-header .identity-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .platform-header > div:last-child {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
  }
  #platform-admin-name { align-self: center; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .platform-header button { min-width: 0; padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  .platform-main { width: min(100% - 20px, 1460px); padding: 22px 0 42px; }
  .platform-heading { align-items: stretch; flex-direction: column; }
  .platform-heading h1 { font-size: clamp(31px, 11vw, 38px); }
  .platform-heading button { width: 100%; }
  .platform-kpis { grid-template-columns: 1fr 1fr; }
  .platform-kpi { gap: 9px; padding: 12px 10px; }
  .platform-kpi > b { width: 32px; height: 32px; flex-basis: 32px; }
  .platform-kpi strong { font-size: 21px; }
  .platform-hero { grid-template-columns: 1fr; gap: 16px; padding: 20px; border-radius: 17px; }
  .platform-hero__value { min-width: 0; }
  .platform-hero > button { justify-content: space-between; }
  .platform-panel { border-radius: 15px; }
  .platform-panel > header { gap: 10px; padding: 16px 14px; }
  .platform-client-tools { grid-template-columns: 1fr; padding: 11px; }
  .platform-client-grid { grid-template-columns: 1fr; max-height: 65dvh; }
  .platform-row { grid-template-columns: 1fr auto; }
  .platform-row > :nth-child(2), .platform-row > :nth-child(3), .platform-row > :nth-child(4) { display: none; }
  .control-form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .control-dialog,
  .control-dialog.profile-dialog {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    margin: auto;
    border-radius: 16px;
  }
  .control-dialog form { padding: 18px 14px 20px; }
  .control-dialog header { gap: 10px; margin-bottom: 17px; }
  .control-dialog header h2 { font-size: 24px; }
  .control-dialog header button { flex: 0 0 40px; }
  .control-form-grid { gap: 12px; }
  .control-form-grid input,
  .control-form-grid select,
  .integration-form input,
  .integration-form select { max-width: 100%; }
  .tenant-admin-summary, .tenant-access-reset { grid-template-columns: 1fr; }
  .tenant-access-reset .activation-result { grid-column: auto; }
  .tenant-brand-editor { grid-template-columns: 1fr; }
  .profile-identity-layout { grid-template-columns: 1fr; }
  .notification-grid, .channel-switches { grid-template-columns: 1fr; }
  .integration-principles { grid-template-columns: 1fr; }
  .integration-row { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .identity-brand.dark > span { width: 34px; height: 34px; }
  .identity-brand.dark strong { font-size: 17px; }
  .identity-brand.dark small { font-size: 8px; }
  .platform-header > div:last-child { grid-template-columns: 1fr 1fr; }
  #platform-admin-name { grid-column: 1 / -1; grid-row: 1; }
  .platform-header > div:last-child button { width: 100%; }
  .platform-kpis { gap: 8px; }
  .platform-kpi { align-items: flex-start; flex-direction: column; }
  .platform-kpi small { white-space: normal; }
  .platform-client-grid { padding: 8px; }
  .portfolio-card > header,
  .portfolio-card > footer { padding-inline: 12px; }
  .portfolio-card__plan,
  .portfolio-card__metrics,
  .portfolio-card__contact { margin-inline: 12px; }
  .tenant-brand-editor,
  .tenant-contact-card,
  .tenant-branch-card,
  .profile-section { padding: 12px; }
  .scope-picker { grid-template-columns: 1fr; }
}
