.account-shell{
  min-height:100vh;
}

.account-header{
  min-height:84px;
  padding:18px clamp(18px,5vw,72px);
  border-bottom:1px solid var(--line);
  background:rgba(10,13,17,.88);
  backdrop-filter:blur(14px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  position:sticky;
  top:0;
  z-index:20;
}

.account-brand{
  color:var(--text);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:12px;
}

.account-brand-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#121212;
  font-size:22px;
  font-weight:800;
  overflow:hidden;
}

.account-brand-mark.has-establishment-logo{
  background:transparent;
}

.account-brand-mark .establishment-logo{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:12px;
}

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

.account-brand small{
  color:var(--muted);
  margin-top:3px;
}

.account-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.account-back-button{
  min-height:39px;
  padding:10px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  line-height:1;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.account-content{
  width:min(760px,calc(100% - 32px));
  margin:0 auto;
  padding:48px 0 70px;
}

.account-hero{
  width:100%;
  margin:0 auto 30px;
}

.account-hero h1{
  margin-bottom:10px;
}

.account-hero>p:last-of-type{
  color:var(--muted);
  max-width:700px;
  line-height:1.6;
}

.account-email{
  display:inline-flex;
  margin-top:14px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:13px;
}

.account-grid{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:22px;
  align-items:start;
  margin:0 auto;
}

.account-card{
  width:100%;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:28px;
  display:grid;
  gap:18px;
}

.account-card input{
  min-height:48px;
}

.account-card .primary{
  min-height:46px;
  margin-top:2px;
}

.account-card h2{
  margin:0;
}

.account-helper{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}

.account-message{
  min-height:20px;
  margin:0;
  font-size:13px;
  line-height:1.45;
}

.account-message.error{
  color:#ff8f8f;
}

.account-message.success{
  color:var(--success);
}

@media(max-width:760px){
  .account-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .account-header-actions{
    width:100%;
  }

}

@media(max-width:520px){
  .account-content{
    width:min(100% - 24px,1040px);
    padding-top:30px;
  }

  .account-card{
    padding:20px;
    gap:16px;
  }

  .account-header-actions .user-chip{
    display:none;
  }
}


.account-divider{
  width:100%;
  height:1px;
  background:var(--line);
  margin:4px 0 2px;
}

.account-subsection{
  display:grid;
  gap:4px;
}

.account-subsection h3{
  margin:0;
  font-size:16px;
}

.account-email-change-button{
  width:100%;
  min-height:46px;
  justify-content:center;
}

