/* Scoped to the identity module; no login, body or existing app overrides. */
.sba-identity {
  --id-ink: #101f52;
  --id-muted: #555e70;
  --id-line: #dce0e9;
  --id-accent: #d9001b;
  color: var(--id-ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
}
.sba-identity *, .sba-identity *::before, .sba-identity *::after { box-sizing: border-box; }
.sba-identity [hidden] { display: none !important; }
.sba-identity h1, .sba-identity h2, .sba-identity h3, .sba-identity h4 { color: var(--id-ink); line-height: 1.22; margin: 0 0 12px; text-wrap: balance; }
.sba-identity h1 { font-size: clamp(25px, 5vw, 34px); letter-spacing: -.035em; }
.sba-identity h2 { font-size: clamp(23px, 3vw, 29px); letter-spacing: -.025em; }
.sba-identity h3 { font-size: 20px; }
.sba-identity h4 { font-size: 18px; }
.sba-identity p { margin: 8px 0 16px; }
.sba-id-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 8px 0 18px; }
.sba-id-heading > div { min-width: 0; }
.sba-id-heading p { color: var(--id-muted); margin-bottom: 0; }
.customer-portal-shell .sba-id-heading {
  padding: 22px 26px; margin-bottom: 18px;
  background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95);
  border-radius: 22px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sba-id-eyebrow { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--id-muted); font-weight: 650; }
.sba-id-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(220, 224, 233, .95);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(16, 31, 82, .045), inset 0 1px 0 #fff;
  padding: 26px;
  margin: 0 0 18px;
  min-width: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sba-id-card .sba-id-card { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: #f8f9fb; }
.sba-id-group + .sba-id-group { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--id-line); }
.sba-id-row, .sba-id-member { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; min-width: 0; }
.sba-id-row > div, .sba-id-member > div { min-width: 0; }
.sba-id-row p { margin-bottom: 0; }
.sba-id-address { overflow-wrap: anywhere; word-break: normal; }
.sba-id-muted { color: var(--id-muted); }
.sba-id-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--id-muted); font-size: 14px; }
.sba-id-badge { display: inline-flex; align-items: center; background: #f1f3f7; color: #535d72; border: 1px solid #dde1e9; padding: 5px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; max-width: 100%; }
.sba-id-badge.is-verified { background: #eaf4ee; color: #20503c; border-color: #c9dfd1; }
.sba-id-list { list-style: none; padding: 0; margin: 18px 0; }
.sba-id-list > li { padding: 20px 0; border-top: 1px solid var(--id-line); }
.sba-id-list > li:last-child { border-bottom: 1px solid var(--id-line); }
.sba-id-member strong { font-size: 17px; }
.sba-id-member .sba-id-actions { flex-shrink: 0; width: min(100%, 220px); flex-direction: column; align-items: stretch; }
.sba-id-member p { margin: 5px 0 10px; }
.sba-id-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.sba-identity .sba-id-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 46px; min-width: 44px; max-width: 100%; padding: 11px 17px;
  color: var(--id-ink); background: #fff; border: 1px solid #c4cad5;
  border-radius: 12px; font: inherit; font-weight: 600; line-height: 1.4;
  cursor: pointer; text-align: center; text-decoration: none; white-space: normal;
  overflow-wrap: anywhere; box-shadow: 0 2px 5px rgba(16, 31, 82, .025);
}
.sba-identity .sba-id-button.is-primary, .sba-identity .sba-id-button[data-id-action="migrate"] { background: var(--id-accent); color: #fff; border-color: var(--id-accent); }
.sba-identity .sba-id-button[data-tone="danger"] { color: var(--id-accent); border-color: #eccbd0; }
.sba-identity .sba-id-button:hover:not(:disabled) { box-shadow: 0 3px 10px rgba(16, 31, 82, .12); }
.sba-identity .sba-id-button:disabled { cursor: not-allowed; opacity: .55; }
.sba-identity :is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #687082; outline-offset: 3px; }
.sba-id-form { display: grid; gap: 17px; min-width: 0; margin: 20px 0 0; }
.sba-id-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.sba-id-field { display: grid; gap: 7px; min-width: 0; font-weight: 600; color: var(--id-ink); }
.sba-identity input:not([type="checkbox"]), .sba-identity select, .sba-identity textarea {
  display: block; min-width: 0; width: 100%; max-width: 100%; min-height: 46px;
  color: var(--id-ink); background: #fff; border: 1px solid #c4cad5; border-radius: 10px;
  padding: 11px 12px; font: inherit; font-weight: 400; line-height: 1.5; box-shadow: none;
}
.sba-identity textarea { resize: vertical; min-height: 96px; }
.sba-identity input[type="color"] { padding: 5px; }
.sba-identity input[autocomplete="one-time-code"] { font-family: ui-monospace, monospace; font-size: 26px; letter-spacing: .22em; text-align: center; }
.sba-id-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; }
.sba-identity .sba-id-check input { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0; accent-color: var(--id-accent); }
.sba-identity fieldset { border: 1px solid var(--id-line); border-radius: 14px; min-width: 0; margin: 0; padding: 16px; display: grid; gap: 16px; }
.sba-identity fieldset:disabled { opacity: .65; }
.sba-identity legend { font-weight: 600; padding: 0 6px; max-width: 100%; }
.sba-identity summary { cursor: pointer; font-weight: 650; font-size: 17px; min-height: 44px; padding: 10px 0; }
.sba-identity details[open] > summary { margin-bottom: 16px; }
.sba-id-invite { margin: 20px 0; padding: 16px; border: 1px solid var(--id-line); border-radius: 14px; background: #f8f9fb; }
.sba-id-notice { background: #f3f5f9; color: var(--id-ink); padding: 13px 15px; border: 1px solid var(--id-line); border-radius: 12px; overflow-wrap: anywhere; }
.sba-id-notice.is-error { color: #9a1227; background: #fff1f3; border-color: #edccd2; }
.sba-id-owner-select { margin: 28px 0; }
.sba-id-preview { margin-top: 24px; }
.sba-id-preview iframe { display: block; width: 100%; min-width: 0; height: 640px; max-height: 80dvh; border: 1px solid var(--id-line); border-radius: 12px; background: #fff; }
.sba-id-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: #f3f5f9; border-radius: 12px; padding: 18px; }
.sba-id-access { max-width: 620px; margin: 36px auto; padding: 0 12px; }
.sba-id-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; margin-bottom: 30px; }
.sba-id-brand img { width: 40px; height: 40px; object-fit: contain; }
.sba-id-scene { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; object-position: center; border-radius: 14px; margin: 0 0 24px; }
.sba-identity.sba-id-dialog {
  position: fixed; width: min(540px, calc(100vw - 24px)); max-width: none;
  max-height: calc(100dvh - 32px); margin: auto; overflow: auto; overscroll-behavior: contain;
  padding: 28px; border: 1px solid var(--id-line); border-radius: 22px; background: #fff;
  box-shadow: 0 24px 80px rgba(16, 31, 82, .22);
}
.sba-id-dialog::backdrop { background: rgba(16, 24, 40, .48); }
.sba-id-dialog [data-id-dialog-fields] { border: 0; padding: 0; }
.sba-id-dialog [data-id-fields] { display: grid; gap: 16px; }
.sba-id-sr { position: absolute; width: 1px; height: 1px; padding: 0 !important; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .sba-id-heading, .sba-id-row, .sba-id-member { flex-direction: column; gap: 14px; }
  .sba-id-heading > .sba-id-button { align-self: stretch; }
  .sba-id-grid { grid-template-columns: minmax(0, 1fr); }
  .sba-id-card { padding: 19px 16px; border-radius: 17px; }
  .sba-id-card .sba-id-card { padding: 16px 12px; }
  .sba-id-member .sba-id-actions { width: 100%; }
  .sba-id-actions { width: 100%; }
  .sba-id-actions > .sba-id-button { flex: 1 1 180px; }
  .sba-id-invite { padding: 12px; }
  .sba-identity fieldset { padding: 12px; }
  .sba-id-access { margin: 16px auto; padding: 0 10px; }
  .sba-identity.sba-id-dialog { padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sba-identity *, .sba-identity *::before, .sba-identity *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .sba-id-card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
