.b2b-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  color: #83838f;
  margin: 25px 0 18px;
}
.b2b-divider:before,
.b2b-divider:after {
  content: "";
  height: 1px;
  background: var(--b2b-line);
  flex: 1;
}
.b2b-provider-list {
  display: flex;
  gap: 10px;
}
.b2b-provider-list button {
  flex: 1;
}
.b2b-state-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff25;
  border-radius: 12px;
  background: #ffffff04;
  color: #e3e4e8;
  margin: 0 0 25px;
}
.b2b-state-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.b2b-info-note {
  padding: 17px 18px;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  color: #acacb9;
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 26px;
  background: #ffffff03;
}
#page-auth #b2b-auth-code {
  text-align: center;
  font-size: 23px;
  letter-spacing: 0.45em;
  padding-left: 24px;
  font-variant-numeric: tabular-nums;
  height: 58px;
}
.b2b-session-state {
  max-width: 470px;
  margin: 0 auto;
  padding: 140px 24px 90px;
  text-align: center;
  color: #a6a6b3;
  font-size: 14px;
  line-height: 1.8;
  min-height: 70vh;
}
.b2b-session-state .b2b-state-icon {
  margin-inline: auto;
}
.b2b-session-state h1 {
  font-size: 32px;
  letter-spacing: -0.045em;
  color: #f0f0f4;
  font-weight: 500;
  margin: 12px 0;
}
.b2b-auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 340px;
  color: #a4a4b1;
  font-size: 13px;
}
.b2b-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: b2b-spin 0.75s linear infinite;
  flex: none;
}
@keyframes b2b-spin {
  to {
    transform: rotate(360deg);
  }
}
.b2b-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
/* Connected account and shared dialogs: grouped actions, readable feedback and one visual rhythm. */
#page-profile .ac-panel > h2 {
  margin: 14px 0 12px;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: -0.045em;
  font-weight: 500;
}
#page-profile .ac-panel > p {
  font-size: 13px;
  line-height: 1.8;
  color: #aaaab8;
  margin: 12px 0 20px;
}
#page-profile .ac-panel > .v9-btn {
  margin: 5px 8px 5px 0;
  min-height: 43px;
}
#page-profile .v9-field input,
#page-profile .v9-field textarea {
  font-size: 14px;
  border-radius: 7px;
  padding: 13px 14px;
  line-height: 1.5;
  background: #101015;
}
#page-profile .v9-field {
  margin-bottom: 22px;
}
#page-profile .v9-field > span {
  font-size: 12px;
}
#page-profile .ac-panel > small {
  font-size: 11px;
  line-height: 1.7;
  color: #9393a2;
}
#connected-profile .ac-label {
  margin-bottom: 28px;
}
#connected-profile [data-connected="random-alias"] {
  font-size: 11px;
  margin: -9px 0 25px;
  min-height: 34px;
  background: none;
  border-color: #ffffff1a;
  color: #b6b6c4;
}
#page-profile .ac-panel > [data-connected-status] {
  margin-bottom: 0;
}
[data-connected-status]:empty {
  display: none;
}
[data-connected-status]:not(:empty) {
  padding: 12px 14px;
  margin: 18px 0 0;
  border: 1px solid #ffffff18;
  border-radius: 7px;
  background: #ffffff03;
  color: #c6c6d0;
  line-height: 1.7;
  font-size: 12px;
}
[data-connected-status][data-tone="error"] {
  border-color: #9f55554d;
  color: #efb4b2;
  background: #552c2c20;
}
[data-connected-status][data-tone="success"] {
  color: #b5d4c3;
}
#page-profile .security-grid .ac-panel + .ac-panel h2:not(:first-of-type) {
  padding-top: 25px;
  margin-top: 28px;
  border-top: 1px solid var(--b2b-line);
}
#page-profile .settings-row {
  padding-block: 21px;
  border-color: var(--b2b-line);
}
#page-profile .settings-row strong {
  font-size: 13px;
  font-weight: 500;
}
#page-profile .v9-switch {
  width: 37px;
  height: 21px;
  flex: none;
}
#page-profile .activity-table {
  margin-top: 20px;
}
#page-profile .history-filter {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #ffffff18;
  border-radius: 7px;
}
#page-profile .history-filter button {
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 4px;
}
.site-dialog.b2b-dialog {
  width: min(510px, calc(100vw - 36px));
  padding: 0;
  background: #141419;
  border: 1px solid #ffffff24;
  border-radius: 13px;
  max-height: calc(100svh - 40px);
  box-shadow: 0 36px 130px #000b;
}
.site-dialog.b2b-dialog .site-dialog-head {
  padding: 19px 26px;
  border-bottom: 1px solid var(--b2b-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-dialog.b2b-dialog .site-dialog-head > span {
  font:
    9px/1.6 ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #9696a5;
}
.site-dialog.b2b-dialog [data-close-dialog] {
  height: 32px;
  width: 32px;
  border-radius: 6px;
  color: #a7a7b5;
  font-size: 23px;
}
.site-dialog.b2b-dialog [data-close-dialog]:hover {
  background: #ffffff07;
  color: #fff;
}
.site-dialog.b2b-dialog #site-dialog-body {
  padding: 28px 30px 30px;
}
.site-dialog.b2b-dialog h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.18;
  margin: 0 0 14px;
}
.site-dialog.b2b-dialog p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 23px;
  color: #aaaab9;
}
.site-dialog.b2b-dialog .v9-field {
  margin: 24px 0 22px;
}
.site-dialog.b2b-dialog .v9-field span {
  font-size: 12px;
}
.site-dialog.b2b-dialog .v9-field input {
  height: 48px;
  font-size: 15px;
  background: #101015;
  border-radius: 7px;
}
.site-dialog.b2b-dialog .v9-btn {
  min-height: 43px;
  padding: 11px 16px;
  gap: 9px;
  border-radius: 7px;
  margin: 4px 7px 4px 0;
}
.site-dialog.b2b-dialog #b2b-mfa-code {
  text-align: center;
  font:
    22px ui-monospace,
    monospace;
  letter-spacing: 0.4em;
  height: 56px;
  padding-left: 25px;
}
.site-dialog.b2b-dialog #b2b-mfa-qr {
  display: block;
  margin: 24px auto;
  padding: 12px;
  width: 196px;
  height: 196px;
  background: #fff;
  border-radius: 9px;
}
.site-dialog.b2b-dialog .b2b-dialog-footer {
  border-top: 1px solid var(--b2b-line);
  margin-top: 26px;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.site-dialog.b2b-dialog .b2b-dialog-footer .v9-btn {
  margin: 0;
}
.site-dialog.b2b-dialog .b2b-dialog-footer .v9-btn:first-child:last-child {
  width: 100%;
}
.site-dialog.b2b-dialog.b2b-library-dialog {
  width: min(700px, calc(100vw - 36px));
}
.b2b-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 25px 0 0;
}
.b2b-library-card {
  min-width: 0;
  padding: 16px;
  background: #0f0f14;
  border: 1px solid var(--b2b-line);
  border-radius: 10px;
  text-align: center;
}
.b2b-library-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto 13px;
}
.b2b-library-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 12px;
  overflow-wrap: anywhere;
}
.site-dialog.b2b-dialog .b2b-library-card .v9-btn {
  width: 100%;
  font-size: 11px;
  margin: 0;
}
.b2b-empty-state {
  text-align: center;
  padding: 23px 10px 10px;
}
.b2b-empty-state .b2b-state-icon {
  margin-inline: auto;
}
.site-dialog.b2b-dialog .b2b-empty-state p {
  max-width: 310px;
  margin: 0 auto 25px;
}
.b2b-billing-note {
  font-size: 12px;
  line-height: 1.7;
  color: #a8a8b6;
  margin: 24px auto 0;
  max-width: 560px;
}
#ct-result:not(:empty) {
  padding: 17px 20px;
  border: 1px solid #ffffff1c;
  border-radius: 9px;
  background: #ffffff03;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
#ct-result[data-tone="success"] {
  border-color: #94bba533;
  color: #c7dfd1;
}
#ct-result[data-tone="error"] {
  color: #edb4b2;
  border-color: #a4616138;
}
@media (max-width: 1100px) {
  .b2b-auth-page {
    padding-inline: 4%;
  }
  .b2b-auth-layout {
    min-height: 660px;
    grid-template-columns: 0.95fr 1fr;
  }
  .b2b-auth-main {
    padding-inline: 38px;
  }
  .b2b-auth-story-copy {
    padding: 50px 32px;
  }
  .b2b-auth-story-foot {
    left: 32px;
  }
  .b2b-auth-story h2 {
    font-size: 46px;
  }
  .b2b-auth-foot {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  .b2b-auth-page {
    padding: 105px 24px 24px;
  }
  .b2b-auth-layout {
    display: block;
    max-width: 480px;
    min-height: 0;
    border: 0;
    background: none;
    overflow: visible;
  }
  .b2b-auth-story {
    display: none;
  }
  .b2b-auth-main {
    padding: 0;
  }
  .b2b-auth-form-wrap {
    max-width: 380px;
    padding: 46px 0 48px;
  }
  .b2b-auth-form-wrap h1 {
    font-size: 34px;
  }
  .b2b-auth-description {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .b2b-field input {
    font-size: 16px;
    height: 50px;
  }
  .b2b-password-toggle {
    height: 46px;
  }
  .b2b-auth-foot {
    font-size: 10px;
    padding-bottom: 12px;
  }
  .b2b-auth-foot nav {
    gap: 17px;
  }
  .b2b-primary {
    min-height: 48px;
  }
  .navigation .nav-account.is-guest {
    font-size: 12px;
  }
  .auth-route .nav-demo {
    display: none;
  }
  .site-dialog.b2b-dialog #site-dialog-body {
    padding: 25px 23px;
  }
  .site-dialog.b2b-dialog .site-dialog-head {
    padding: 15px 20px;
  }
  .site-dialog.b2b-dialog h2 {
    font-size: 26px;
  }
  .site-dialog.b2b-dialog input {
    font-size: 16px !important;
  }
  .b2b-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2b-library-card img {
    height: 125px;
  }
  #page-profile .ac-panel > .v9-btn {
    max-width: 100%;
  }
  #page-profile .ac-section-head {
    flex-wrap: wrap;
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .b2b-spinner {
    animation-duration: 1.8s;
  }
  .b2b-primary,
  .b2b-secondary,
  .b2b-field input {
    transition: none;
  }
}

.v9-field > label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 9px;
  color: #d2d2dd;
}
#page-profile .v9-field .b2b-password-toggle {
  top: 3px;
  height: 42px;
}
#page-profile .b2b-password-hint {
  font-size: 11px;
  line-height: 1.7;
  margin: -12px 0 22px;
  color: #9696a5;
}
.b2b-account-note {
  padding: 16px 18px;
  background: #ffffff03;
  border: 1px solid var(--b2b-line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: #b1b1bf;
}
.b2b-security-badge {
  display: inline-flex;
  font-size: 10px;
  color: #b4d4c3;
  padding: 6px 10px;
  border: 1px solid #b4d4c32b;
  border-radius: 5px;
  margin: 5px 0 22px;
  background: #b4d4c306;
}
.b2b-dialog .b2b-subtle-action {
  text-align: center;
  margin: 17px 0 -5px;
}
.b2b-dialog .b2b-subtle-action .v9-btn {
  border: none;
  background: none;
  color: #b8a1a5;
  font-size: 11px;
}
.b2b-dialog .b2b-avatar-empty {
  width: 110px;
  height: 110px;
  margin: 0 auto 23px;
}
.b2b-dialog .b2b-avatar-empty > * {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-dialog.b2b-dialog [data-dismiss-connected] {
  cursor: pointer;
}
.site-dialog.b2b-dialog .b2b-empty-state h3 {
  font-size: 19px;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 12px;
}
#page-profile button[aria-busy="true"] {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
#page-profile button:disabled,
.site-dialog.b2b-dialog button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.site-dialog.b2b-dialog .b2b-dialog-footer [data-dismiss-connected] {
  height: auto;
  width: auto;
  font-size: 12px;
  color: inherit;
}

#page-profile .account-side-bottom .v9-btn {
  min-height: 37px;
  padding: 8px 10px;
  justify-content: flex-start;
  background: #ffffff03;
  border-color: #ffffff1c;
  color: #c1c1cd;
}
#page-profile .ac-panel form > .ac-label,
#connected-password > .ac-label {
  margin-bottom: 26px;
}
#page-profile #connected-profile [data-connected="random-alias"] {
  margin: -7px 0 26px;
}
#page-profile .profile-card-preview h3 {
  overflow-wrap: anywhere;
}
#page-profile .b2b-action-row .v9-btn {
  margin: 0;
  flex: 1;
  min-height: 41px;
  font-size: 11px;
}
#page-profile .v18-avatar-panel #v18-avatar-name {
  display: block;
  text-align: center;
  font-weight: 500;
}
#page-profile .v18-avatar-panel #v18-avatar-note {
  text-align: center;
  font-size: 12px;
}
#page-profile .activity-table > p {
  font-size: 12px;
  line-height: 1.8;
  padding: 22px 18px;
  margin: 0;
  color: #a6a6b4;
}

.b2b-library-remove {
  font: inherit;
  font-size: 10px;
  border: 0;
  background: none;
  color: #9696a6;
  padding: 12px 8px 0;
  margin-top: 3px;
  cursor: pointer;
}
.b2b-library-remove:hover {
  color: #ebc4c4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.b2b-library-remove:focus-visible {
  outline: 2px solid var(--b2b-focus);
  outline-offset: 3px;
}

.navigation .nav-account .v18-nav-avatar {
  display: block !important;
}
.navigation .nav-account .v18-nav-avatar .v9-avatar {
  display: inline-flex !important;
  width: 100%;
  height: 100%;
}
.navigation .nav-account:not(.is-guest) {
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}
.b2b-mobile-account-footer {
  display: none;
}
@media (max-width: 600px) {
  .b2b-mobile-account-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--b2b-line);
    font-size: 11px;
    color: #a6a6b4;
  }
  .b2b-mobile-account-footer .v9-btn {
    padding: 10px 16px;
    min-height: 41px;
  }
}

#ct-content[data-sent] {
  scroll-margin-top: 100px;
}
.ct-sent-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #b5d4c330;
  background: #b5d4c306;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #c5ddce;
  margin: 25px 0 19px;
}
.ct-sent-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
#ct-content .ct-sent-lede {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.035em;
  color: #ededf3;
  margin: 0 0 10px;
}
.ct-sent-copy {
  font-size: 12px;
  line-height: 1.8;
  color: #9f9fad;
  margin: 0 0 23px;
}
.ct-receipt-reference {
  padding: 18px;
  border: 1px solid #ffffff20;
  border-radius: 7px;
  background: #ffffff03;
  margin: 0 0 25px;
}
.ct-receipt-reference span {
  display: block;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: #9292a3;
  margin-bottom: 9px;
}
.ct-receipt-reference code {
  font:
    12px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  color: #c4d8ce;
}
.ct-sent-details {
  border-block: 1px solid #ffffff17;
  margin-bottom: 22px;
}
.ct-sent-details summary {
  font-size: 12px;
  color: #c8c8d3;
  padding: 17px 0;
  cursor: pointer;
}
.ct-sent-details .ct-review-meta {
  margin-top: 10px;
}
.ct-sent-details .ct-review-body {
  margin-bottom: 20px;
}
.ct-receipt-footer {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid #ffffff18;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ct-receipt-footer .hp-btn {
  min-height: 43px;
}
#ct-content[data-sent] #ct-result:empty {
  display: none;
}
@media (max-width: 600px) {
  .ct-receipt-footer .hp-btn {
    width: 100%;
    justify-content: center;
  }
}

#ct-content[data-sent] .ct-review-actions{display:flex;gap:12px}#ct-content[data-sent] .ct-review-actions .hp-btn{flex:1;justify-content:center}

/* Launch invitation follows the account dialog's existing type and spacing. */

/* Long policy URLs must wrap inside the phone layout. */
.published-policy { overflow-wrap:anywhere; }
.published-policy a { word-break:normal; overflow-wrap:anywhere; }

/* Community identity: bounded profile styling. */
#identity-choices fieldset{border:0;padding:12px 0;display:grid;gap:8px;min-width:0}#identity-choices label{display:flex;align-items:center;gap:8px;padding:9px;border:1px solid var(--line,#777);border-radius:6px;font-size:13px}#identity-choices input{width:auto}.identity-name-note{font-size:12px;line-height:1.6}
.identity-idle:not(.identity-still) [data-user-avatar]{animation:identity-breathe 7s ease-in-out infinite;transform-origin:center bottom}@keyframes identity-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.identity-idle [data-user-avatar]{animation:none!important;transform:none!important}}

/* Overview avatar uses the same studio action as the existing profile entry. */
.identity-pass .overview-avatar-customize{float:right;position:relative;width:150px;min-height:184px;margin:12px -8px 0 12px;padding:0;border:0;border-radius:12px;background:transparent;color:#f5f5fa;cursor:pointer;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}
.identity-pass .overview-avatar-customize .v9-avatar{position:relative;inset:auto;width:150px;height:150px;z-index:0;opacity:1;filter:none;flex:none}
.overview-avatar-action{display:block;padding:10px 12px;border:1px solid #ffffff40;background:#24242d;border-radius:6px;font-size:11px;line-height:1.3;white-space:nowrap;opacity:0}
.overview-avatar-customize:hover .overview-avatar-action,.overview-avatar-customize:focus-visible .overview-avatar-action{opacity:1}
.overview-avatar-customize:focus-visible{outline:2px solid #d7c8ff;outline-offset:4px}
@media(hover:none),(pointer:coarse){.overview-avatar-action{opacity:1}}
@media(max-width:600px){.identity-pass .overview-avatar-customize{width:130px;margin-right:-10px}.identity-pass .overview-avatar-customize .v9-avatar{width:130px;height:150px}.overview-avatar-action{opacity:1}}

.b2b-badge-disclosure{font-size:11px;line-height:1.7;color:#a5a5b1;border-top:1px solid #ffffff16;padding-top:14px;margin:18px 0}
.b2b-badge-disclosure strong{display:block;color:#dedee6;font-size:11px;font-weight:500;margin-bottom:5px}

/* Preferences: subordinate descriptions retain native checkbox labels and sizing. */
.b2b-preference-row>div{flex:1;min-width:0}.b2b-preference-row .b2b-preference-description{margin:6px 0 0;font-size:12px;line-height:1.6;color:#aaaab6;overflow-wrap:break-word}

/* Private sign-in email controls; existing auth and billing styling stays shared. */
#page-profile .account-email-grid { grid-template-columns: 1fr; margin-bottom: 24px; }
#connected-email { scroll-margin-top: 150px; }
#b2b-email-feedback { overflow-wrap: anywhere; }
#page-profile #connected-email .v9-btn, #page-profile .ac-panel > .b2b-email-entry { min-height: 44px; }
@media (max-width: 650px) { #page-profile #connected-email input { font-size: 16px; } }
