#account-avatar-panel[hidden], .avatar-badge [hidden] {
  display: none;
}

body[data-view="account"] #page-description:empty,
body[data-view="account"] #page-eyebrow:empty,
body[data-view="account-info"] #page-description:empty,
body[data-view="account-info"] #page-eyebrow:empty,
#account-session-panel #account-state:empty {
  display: none;
}

body:is([data-view="account"], [data-view="account-info"]) #workspace-nav .nav-aside-note {
  display: none;
}

@media (max-width: 780px) {
  body:is([data-view="account"], [data-view="account-info"]) #workspace-nav #consumer-navigation nav {
    display: flex;
    align-items: center;
    margin: 0;
  }

  body:is([data-view="account"], [data-view="account-info"]) #workspace-nav .nav-bottom {
    display: none;
  }
}

.is-authenticated #account-session-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
}

.is-authenticated #account-session-panel h2,
.is-authenticated #account-session-panel form,
.is-authenticated #account-session-panel .row {
  margin: 0;
}

#account-info-entry {
  padding: 0;
}

.account-info-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 16px clamp(18px, 4vw, 30px);
  border-radius: inherit;
  color: #263840;
  text-decoration: none;
}

.account-info-link:hover, .account-info-link:focus-visible {
  background: #f4f7f7;
}

.account-info-link strong, .account-info-link small {
  display: block;
}

.account-info-link small {
  margin-top: 4px;
  color: #596873;
}

.account-info-link > span:last-child {
  font-size: 1.5em;
  line-height: 1;
}

.account-info-field, .account-info-phone:not(:empty) {
  padding-block: 14px;
}

.account-info-field {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid #e6eaed;
  border-bottom: 1px solid #e6eaed;
}

.account-info-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: end;
}

#account-info-general > section:not([hidden]) + section:not([hidden]) {
  border-top: 1px solid #e6eaed;
  margin-top: 16px;
  padding-top: 16px;
}

#account-info-general h2:not(#account-info-general-title) {
  font-size: 1rem;
  margin-bottom: 10px;
}

.account-avatar-picker {
  display: inline-flex;
  position: relative;
  margin: 0;
}

.account-avatar-picker:focus-within {
  outline: 2px solid #487c98;
  outline-offset: 3px;
}

#account-avatar-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

#account-avatar-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: .9rem;
  row-gap: .35rem;
  margin-block: 1rem;
}

#account-avatar-form {
  min-width: 0;
  margin: 0;
}

#account-avatar-form input {
  max-width: 100%;
}

#account-avatar-status {
  grid-column: 2;
  margin: 0;
}

#account-avatar-status:empty {
  display: none;
}

.avatar-badge {
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  overflow: hidden;
  border-radius: 50%;
  background: #e9eaf6;
  color: #4a4c74;
  font-size: .85rem;
  font-weight: 650;
  line-height: 1;
}

.avatar-badge img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

#account-avatar-preview {
  inline-size: 3rem;
  block-size: 3rem;
  margin-top: .25rem;
}

#account-avatar-preview, .conversation-message[data-sender="account"] .avatar-badge {
  background: #e4edf2;
  color: #37586a;
}

.conversation-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .5rem;
  max-inline-size: 100%;
}

.conversation-message[data-sender="account"] {
  grid-template-columns: minmax(0, 1fr) auto;
}

.conversation-message[data-sender="account"] .avatar-badge {
  grid-area: 1 / 2;
}

.conversation-message[data-sender="account"] .conversation-message-body {
  grid-area: 1 / 1;
  justify-self: end;
}

.conversation-message-body {
  display: grid;
  min-width: 0;
}

.conversation-sender {
  margin-block: .2rem;
  color: #4f6170;
  font-size: .75rem;
  overflow-wrap: anywhere;
}

.conversation-message[data-sender="account"] .conversation-sender {
  justify-self: end;
}

#account-avatar-crop {
  box-sizing: border-box;
  width: min(25rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 1rem 1.2rem;
  overflow-y: auto;
  border: 1px solid #d9e5ec;
  border-radius: 1rem;
  background: #fff;
  color: #253b49;
}

#account-avatar-crop::backdrop {
  background: #263f5370;
}

#account-avatar-crop h2 {
  margin-block: 0 .5rem;
}

.account-avatar-crop-frame {
  position: relative;
  inline-size: min(100%, 15rem, 55vh);
  aspect-ratio: 1;
  margin: .75rem auto;
  border: 2px dashed #518193;
  background: #e6edf2;
}

.account-avatar-crop-frame::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle closest-side, transparent 97%, #1b304054 99%);
  content: '';
  pointer-events: none;
}

#account-avatar-crop-canvas {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  touch-action: none;
  cursor: grab;
}

#account-avatar-crop-canvas:active {
  cursor: grabbing;
}

#account-avatar-crop-canvas:focus-visible {
  outline: 2px solid #3f718b;
  outline-offset: 3px;
}

#account-avatar-crop-zoom {
  padding: 0;
  min-height: 1.5rem;
  accent-color: #487f9b;
}

#account-avatar-crop-status:empty {
  display: none;
}
