/* MMO8386-MANAGED-FILE-V1 | assets/css/modules/profile.css */
.profile-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.profile-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.profile-tools select{min-width:220px;height:36px;border:1px solid #ddd;border-radius:8px;padding:0 9px;background:#fff}
.profile-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:14px}
.profile-card{background:#fff;border:1px solid #e7e7e7;border-radius:14px;padding:16px}
.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.profile-form .full{grid-column:1/-1}
.profile-readonly{background:#f5f6f8}
.profile-summary{display:grid;gap:10px}
.profile-summary>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #eee}
.profile-summary>div:last-child{border-bottom:0}
.profile-summary span{color:#777}
.profile-summary strong{text-align:right}

html[data-theme="dark"] .profile-card{
  background:#1a1d22!important;
  color:#f1f3f5!important;
  border-color:#30343b!important
}
html[data-theme="dark"] .profile-readonly{background:#20242a!important}
html[data-theme="dark"] .profile-summary>div{border-color:#30343b!important}
html[data-theme="dark"] .profile-summary span{color:#a6adb7!important}
html[data-theme="dark"] .profile-tools select{
  background:#171a1f!important;color:#f1f3f5!important;border-color:#3a3f47!important
}

@media(max-width:800px){
  .profile-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .profile-toolbar{flex-direction:column}
  .profile-tools{width:100%}
  .profile-tools select{flex:1;min-width:0}
  .profile-form{grid-template-columns:1fr}
  .profile-form .full{grid-column:auto}
}


/* v0.9.21 — Owner account search like phone contacts */
.profile-account-search{
  position:relative;
  width:min(380px,70vw);
}

.profile-account-search input[type="search"]{
  width:100%;
  height:40px;
  padding:0 13px;
  border:1px solid #d7dbe0;
  border-radius:10px;
  background:#fff;
  color:#222;
  outline:none;
}

.profile-account-search input[type="search"]:focus{
  border-color:#9098a2;
  box-shadow:0 0 0 3px rgba(0,0,0,.05);
}

.profile-account-suggestions{
  position:absolute;
  z-index:80;
  top:calc(100% + 6px);
  left:0;
  right:0;
  max-height:340px;
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid #dfe2e6;
  border-radius:12px;
  background:#fff;
  box-shadow:0 14px 36px rgba(0,0,0,.13);
  padding:5px;
}

.profile-account-suggestion{
  width:100%;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:9px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#222;
  text-align:left;
  cursor:pointer;
  touch-action:manipulation;
}

.profile-account-suggestion:hover,
.profile-account-suggestion.is-active{
  background:#f1f3f5;
}

.profile-account-avatar{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:50%;
  background:#eceff2;
  font-size:13px;
  font-weight:800;
}

.profile-account-suggestion__text{
  min-width:0;
}

.profile-account-suggestion__text strong,
.profile-account-suggestion__text small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.profile-account-suggestion__text small{
  margin-top:3px;
  color:#7c838c;
  font-size:11px;
}

.profile-account-status{
  padding:3px 6px;
  border-radius:999px;
  background:#f3f3f3;
  color:#777;
  font-size:10px;
}

.profile-search-empty{
  padding:12px;
  color:#777;
  font-size:12px;
}

html[data-theme="dark"] .profile-account-search input[type="search"]{
  background:#171a1f!important;
  color:#f1f3f5!important;
  border-color:#3a3f47!important;
}

html[data-theme="dark"] .profile-account-suggestions{
  background:#1a1d22!important;
  border-color:#30343b!important;
  box-shadow:0 14px 36px rgba(0,0,0,.42)!important;
}

html[data-theme="dark"] .profile-account-suggestion{
  color:#f1f3f5!important;
}

html[data-theme="dark"] .profile-account-suggestion:hover,
html[data-theme="dark"] .profile-account-suggestion.is-active{
  background:#252a31!important;
}

html[data-theme="dark"] .profile-account-avatar{
  background:#2b3037!important;
  color:#e8eaed!important;
}

html[data-theme="dark"] .profile-account-suggestion__text small,
html[data-theme="dark"] .profile-search-empty{
  color:#a6adb7!important;
}

@media(max-width:620px){
  .profile-account-search{
    width:100%;
  }
  .profile-account-suggestions{
    max-height:300px;
  }
}


.profile-password-card{
  margin-top:14px;
}
.profile-password-card .section-head{
  margin-bottom:12px;
}
.profile-password-card .section-head p{
  margin:4px 0 0;
}
html[data-theme="dark"] .profile-password-card{
  background:#1a1d22!important;
  color:#f1f3f5!important;
  border-color:#30343b!important;
}


/* v0.9.29 — layout-only optimization, full feature set preserved */
.account-section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 10px;
}
.account-section-heading h2{
  margin:3px 0 0;
  font-size:20px;
}
.profile-grid{
  align-items:stretch;
}
.profile-card{
  min-width:0;
}
.account-security-card{
  margin-top:14px;
}
.account-security-card .profile-form{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.account-security-card .full{
  grid-column:1/-1;
}

/* Wide desktop: keep profile summary narrow and readable. */
@media(min-width:1100px){
  .profile-grid{
    grid-template-columns:minmax(0,2.25fr) minmax(280px,.75fr);
  }
}

/* Tablet/mobile: cards stack naturally without removing any controls. */
@media(max-width:800px){
  .profile-toolbar{
    align-items:stretch;
  }
  .profile-tools{
    width:100%;
  }
  .profile-account-search{
    width:100%!important;
  }
  .account-security-card .profile-form{
    grid-template-columns:1fr;
  }
  .account-security-card .full{
    grid-column:auto;
  }
}


/* v0.9.51 personal audit responsive */
.personal-audit-card{
  margin-top:14px;
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.personal-audit-list{
  display:grid;
  gap:0;
  min-width:0;
  max-width:100%;
}
.personal-audit-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:flex-start;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid #eceff2;
  min-width:0;
  max-width:100%;
}
.personal-audit-item:last-child{border-bottom:0}
.personal-audit-item__main{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}
.personal-audit-item__main strong{
  display:block;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.personal-audit-item__main small{
  display:block;
  margin-top:3px;
  color:#747b84;
  min-width:0;
  max-width:100%;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}
.personal-audit-item time{
  min-width:0;
  max-width:160px;
  color:#747b84;
  font-size:12px;
  white-space:normal;
  text-align:right;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.personal-audit-empty{padding:12px 0;color:#777}
html[data-theme="dark"] .personal-audit-item{border-color:#30343b}
html[data-theme="dark"] .personal-audit-item__main small,
html[data-theme="dark"] .personal-audit-item time,
html[data-theme="dark"] .personal-audit-empty{color:#a6adb7}

@media(max-width:760px){
  .personal-audit-item{
    grid-template-columns:minmax(0,1fr);
    gap:5px;
  }
  .personal-audit-item time{
    max-width:none;
    text-align:left;
  }
}

@media(max-width:620px){
  .personal-audit-item{
    display:block;
    padding:10px 0;
  }
  .personal-audit-item time{
    display:block;
    margin-top:5px;
  }
}


/* v0.9.35 personal audit pagination */
.personal-audit-pagination{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding-top:14px;
  margin-top:4px;
  border-top:1px solid #eceff2;
}
.personal-audit-page-jump{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
}
.personal-audit-page-jump input{
  width:76px;
  height:36px;
  padding:0 8px;
  text-align:center;
  border:1px solid #d9dde2;
  border-radius:8px;
  background:#fff;
  color:#222;
}
.personal-audit-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:9px;
  color:#777;
  font-size:12px;
}
html[data-theme="dark"] .personal-audit-pagination{
  border-top-color:#30343b;
}
html[data-theme="dark"] .personal-audit-page-jump input{
  background:#171a1f!important;
  color:#f1f3f5!important;
  border-color:#3a3f47!important;
}
html[data-theme="dark"] .personal-audit-footer{
  color:#a6adb7;
}
@media(max-width:620px){
  .personal-audit-pagination{
    grid-template-columns:1fr 1fr;
  }
  .personal-audit-page-jump{
    grid-column:1/-1;
    grid-row:1;
    justify-content:center;
  }
  .personal-audit-pagination > #myAuditPrevPage{
    grid-column:1;
    grid-row:2;
  }
  .personal-audit-pagination > #myAuditNextPage{
    grid-column:2;
    grid-row:2;
  }
  .personal-audit-footer{
    flex-direction:column;
    gap:3px;
  }
}


/* v0.9.51 personal audit overflow hardening */
.personal-audit-pagination,
.personal-audit-page-jump,
.personal-audit-footer{
  min-width:0;
  max-width:100%;
}
.personal-audit-page-jump{
  flex-wrap:wrap;
}
.personal-audit-footer{
  overflow-wrap:anywhere;
  word-break:break-word;
}
@media(max-width:760px){
  .personal-audit-pagination{
    grid-template-columns:1fr 1fr;
  }
  .personal-audit-page-jump{
    grid-column:1/-1;
    grid-row:1;
  }
}
