.account-wrap{
  max-width:860px;
  margin:0 auto;
}

.account-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.account-title{
  margin:0;
  font-weight:900;
  letter-spacing:.01em;
  color:#ffffff;
}

.account-subtitle{
  margin-top:6px;
  margin-bottom:0;
  font-size:13px;
  color:rgba(161,161,170,.92);
  line-height:1.7;
}

.account-subtitle.compact{ margin-top:0; }

.account-card{
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:16px;
}

@media (min-width: 768px){
  .account-card{ padding:18px 20px; }
}

.account-field{
  margin-top:12px;
}

.account-label{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  color:rgba(229,231,235,.88);
  margin-bottom:6px;
}

.account-wrap input[type="text"],
.account-wrap input[type="email"],
.account-wrap input[type="password"],
.account-wrap input[type="url"],
.account-wrap input[type="number"],
.account-wrap select,
.account-wrap textarea{
  width:100%;
  display:block;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:#fff;
  transition:box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  color-scheme:dark;
}

.account-wrap input:focus,
.account-wrap select:focus,
.account-wrap textarea:focus{
  outline:none;
  border-color:rgba(99,102,241,.65);
  box-shadow:0 0 0 3px rgba(99,102,241,.20);
  background:rgba(255,255,255,.04);
}

.account-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.account-actions .btn{
  border-radius:999px;
  padding-left:14px;
  padding-right:14px;
}

.account-collapse{
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.account-collapse:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 0 22px rgba(99,102,241,.10);
}

.account-collapse.is-open{
  border-color:rgba(99,102,241,.22);
  box-shadow:0 0 26px rgba(99,102,241,.12);
}

.account-collapse-toggle{
  cursor:pointer;
  user-select:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
  transition:transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.account-collapse-toggle::after{
  content:"";
  width:10px;
  height:10px;
  border-right:2px solid rgba(229,231,235,.72);
  border-bottom:2px solid rgba(229,231,235,.72);
  transform:rotate(45deg);
  transition:transform .18s ease, opacity .18s ease;
  opacity:.85;
  margin-left:2px;
}

.account-collapse-toggle:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.14);
  background:rgba(255,255,255,.035);
  box-shadow:0 0 0 3px rgba(99,102,241,.12);
}

.account-collapse-toggle:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(99,102,241,.20);
}

.account-collapse-toggle[aria-expanded="true"]::after{
  transform:rotate(-135deg);
  opacity:1;
}

.email-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

.email-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.02);
  cursor:pointer;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.email-row:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 0 18px rgba(99,102,241,.10);
}

.email-row.selected{
  border-color:rgba(99,102,241,.45);
  background:rgba(99,102,241,.08);
}

.email-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  min-width:0;
}

.email-left .email-text{
  color:#e5e7eb;
  font-size:14px;
  font-weight:700;
  word-break:break-all;
}

.email-radio{
  width:18px;
  height:18px;
  accent-color:#8b5cf6;
}

.acct-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:#e5e7eb;
}

.acct-badge.ok{
  border-color:rgba(16,185,129,.30);
  background:rgba(16,185,129,.10);
  color:#6ee7b7;
}

.acct-badge.warn{
  border-color:rgba(251,146,60,.30);
  background:rgba(251,146,60,.10);
  color:#fdba74;
}

.acct-badge.primary{
  border-color:rgba(99,102,241,.38);
  background:rgba(99,102,241,.12);
  color:#c4b5fd;
}
