/* Guest mode reuses the owner's refined Nexo profile composition. */
html body #app .profile-settings.nexo-profile-updated.nexo-visitor-profile {
 max-width:800px!important;
 margin-inline:auto;
}
html body #app .nexo-visitor-profile .profile-hero {
 align-items:center;
 justify-content:center;
}
html body #app .nexo-visitor-profile .profile-portrait {
 position:relative!important;
 width:100px!important;
 height:100px!important;
 flex:0 0 100px!important;
 margin-inline:auto;
}
html body #app .nexo-visitor-profile .profile-portrait .avatar.user-avatar {
 display:grid!important;
 place-items:center!important;
 width:100px!important;height:100px!important;
 border-radius:50%!important;
 aspect-ratio:1!important;
 background-size:cover!important;
 background-position:center!important;
 background-repeat:no-repeat!important;
 object-fit:cover!important;
 overflow:hidden!important;
}
html body #app .nexo-visitor-profile .profile-portrait .profile-photo-action {
 position:absolute;
 right:0;bottom:0;
 z-index:2;
}
html body #app .nexo-visitor-profile .nexo-visitor-identity {
 display:flex;flex-direction:column;align-items:center;
 gap:5px;
 min-width:0;
 text-align:center;
}
html body #app .nexo-visitor-profile .nexo-visitor-identity h2 {
 margin:3px 0 0;
 font-size:20px;
 font-weight:600;
 line-height:1.35;
}
html body #app .nexo-visitor-profile .nexo-visitor-identity .nexo-visitor-badge {
 display:inline-flex!important;
 align-items:center;
 justify-content:center;
 align-self:center;
 padding:5px 12px!important;
 margin:2px 0!important;
 border-radius:999px!important;
 background:#e9f4ee!important;
 color:#276e50!important;
 border:1px solid #d7e8dd!important;
 font-size:12px!important;
 font-weight:500!important;
 line-height:1.2!important;
}
html body #app .nexo-visitor-profile .nexo-visitor-identity p {
 margin:0!important;
 font-size:12px!important;
 color:var(--text-secondary)!important;
}
/* Use exactly the segmented owner Profile tabs instead of custom colored pills. */
html body #app .nexo-profile-updated.nexo-visitor-profile .profile-tabs {
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 width:100%!important;
 gap:0!important;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .profile-tabs > button {
 appearance:none;
 min-width:0!important;
 font:inherit;
 font-size:13px!important;
 font-weight:400;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .profile-tabs > button:not(.selected) {
 color:var(--menu-ink,#687d90)!important;
}
/* Same white grouped cards and line items as the owner. */
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-profile-list {
 padding:0 20px;
 background:var(--nexo-surface,#fbfcfd)!important;
 border:1px solid var(--surface-border,#dfe4eb)!important;
 border-radius:20px!important;
 box-shadow:0 4px 12px #28344604!important;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-profile-list-group h3 {
 font-size:12px!important;
 font-weight:450!important;
 letter-spacing:.9px!important;
 color:var(--menu-ink,#687d90)!important;
}
html body #app .nexo-profile-updated.nexo-visitor-profile :is(.nexo-profile-row,.nexo-visitor-name-row,.visitor-email-change > summary){
 min-height:66px;
 font-size:13px;
 font-weight:450;
}
html body #app .nexo-profile-updated.nexo-visitor-profile :is(.nexo-profile-row-icon) {
 border-radius:var(--control-radius,17px)!important;
 background:var(--menu-selected,#e7eef4)!important;
 border-color:var(--menu-selected-border,#d0deea)!important;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-profile-row-label {font-weight:450!important}
/* Desktop inline edit uses compact owner-style controls. */
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-visitor-edit-name:not(.is-sheet) {
 padding:15px 0!important;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-visitor-edit-name .nexo-visitor-sheet-handle,
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-visitor-edit-name .nexo-visitor-sheet-title{
 display:none;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-visitor-save-actions {
 display:flex;align-items:center;gap:8px;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-visitor-save-actions > button {
 flex:0 0 auto!important;
 height:43px!important;min-height:43px!important;
 border-radius:17px!important;
 padding:10px 18px!important;
 font-size:13px!important;
 font-weight:500!important;
 box-sizing:border-box!important;
}
html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-visitor-save-actions > .secondary {
 background:#f5f7fa!important;
 border:1px solid #dfe5eb!important;
 color:var(--text-secondary)!important;
 box-shadow:none!important;
}
/* Guest cannot act on the read-only transaction sheet or debt rows. */
html body.guest-mode #mobile-tx-sheet[open] .tx-sheet-actions,
html body.guest-mode #mobile-tx-sheet .tx-sheet-actions,
html body.guest-mode #mobile-tx-sheet .tx-sheet-actions > *,
html body.guest-mode #app .row-actions :is([data-edit],[data-delete],[data-status]),
html body.guest-mode #app .debt-pay,
html body.guest-mode #app .debt-delete,
html body.guest-mode #app .debt-edit {
 display:none!important;
}
@media(max-width:800px){
 html body #app .nexo-visitor-profile .profile-portrait {
  width:100px!important;height:100px!important;
 }
 html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-profile-list {
  padding:0 16px!important;
  border-radius:17px!important;
 }
 /* Owner profile edits use a floating bottom sheet on mobile. */
 html body .nexo-visitor-edit-backdrop {
  position:fixed!important;
  z-index:9996!important;
  inset:0!important;
  background:#111a2859!important;
  backdrop-filter:blur(11px);
  -webkit-backdrop-filter:blur(11px);
 }
 html body.nexo-visitor-editor-open {overflow:hidden!important}
 html body #app .nexo-profile-updated.nexo-visitor-profile .nexo-visitor-edit-name.is-sheet {
  display:block!important;
  position:fixed!important;
  z-index:9998!important;
  left:0!important;right:0!important;bottom:0!important;
  top:auto!important;
  width:100%!important;
  max-height:80dvh!important;
  overflow-y:auto!important;
  border:1px solid #e5e9ed!important;
  border-bottom:0!important;
  border-radius:24px 24px 0 0!important;
  background:linear-gradient(145deg,#fbfcfd,#f7f9fb)!important;
  box-shadow:0 -20px 70px #121a2730!important;
  padding:13px 22px calc(26px + env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important;
 }
 html body #app .nexo-visitor-edit-name.is-sheet .nexo-visitor-sheet-handle {
  display:block!important;
  width:43px;height:5px;border-radius:8px;
  background:#dce0e5;
  margin:0 auto 15px;
 }
 html body #app .nexo-visitor-edit-name.is-sheet .nexo-visitor-sheet-title {
  display:block!important;
  font-size:16px!important;
  font-weight:550!important;
  margin:0 0 16px!important;
 }
 html body #app .nexo-visitor-edit-name.is-sheet .profile-field {
  display:grid;gap:9px;
  font-size:12px;color:var(--text-secondary);
 }
 html body #app .nexo-visitor-edit-name.is-sheet .profile-field input{
  height:48px!important;min-height:48px!important;
  background:#f4f5f8!important;
  border:1px solid #d8dfe9!important;
  border-radius:17px!important;
  padding:10px 14px!important;
 }
 html body #app .nexo-visitor-edit-name.is-sheet .nexo-visitor-save-actions {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:14px!important;
 }
 html body #app .nexo-visitor-edit-name.is-sheet .nexo-visitor-save-actions > button{
  width:100%!important;max-width:none!important;
  height:48px!important;min-height:48px!important;
  border-radius:17px!important;
  box-shadow:none!important;
  font-size:13px!important;
 }
 html body #app .nexo-visitor-edit-name.is-sheet .nexo-visitor-save-actions > button .profile-save-icon{
  display:none!important;
 }
}
