/* FJU JAPAN | My Page clean, padrão de dashboard, linguagem visual iPhone.
   Aplicado SOMENTE à tela da conta autenticada; login e recuperação intactos. */
#fju-account-dialog[data-fju-view="account"]{
 width:min(480px,calc(100vw - 22px));max-width:480px;
 max-height:min(94dvh,920px);border:1px solid #e2e8f0;
 background:#f6f7fa;color:#1c293b;color-scheme:light;
 border-radius:24px;box-shadow:0 24px 80px #0a1b3445
}
#fju-account-dialog[data-fju-view="account"] .fju-account-top{
 background:#fff;border-bottom:1px solid #e9ecf0;padding:18px 21px 14px
}
#fju-account-dialog[data-fju-view="account"] .fju-account-top small{
 font-size:10px;letter-spacing:1.45px;color:#9c273e;margin-bottom:5px
}
#fju-account-dialog[data-fju-view="account"] .fju-account-top h2{
 color:#19263d;font-family:-apple-system,BlinkMacSystemFont,'DM Sans','Noto Sans JP',sans-serif;
 font-size:23px;letter-spacing:-.65px;line-height:1.2;margin:0 0 4px
}
#fju-account-dialog[data-fju-view="account"] .fju-account-top p{color:#748298;font-size:11px}
#fju-account-dialog[data-fju-view="account"] #fju-account-close{
 color:#49576a;background:#f2f4f7;border:0;border-radius:100px;width:35px;height:35px;font-size:24px
}
#fju-account-dialog[data-fju-view="account"] .fju-account-body{padding:17px 19px 25px}
#fju-account-dialog[data-fju-view="account"] #fju-account-feedback{color:#405777}
#fju-account-dialog[data-fju-view="account"] #fju-account-feedback.error{color:#c3274b}
#fju-account-dialog[data-fju-view="account"] [hidden]{display:none!important}
.fju-youth-dashboard,.fju-youth-content-pane{min-width:0}
.fju-youth-overline{display:block;font-size:10px;color:#a42b47;letter-spacing:1.45px;font-weight:850;margin:0 0 11px}
.fju-youth-greeting{padding:20px;background:#fff;border:1px solid #e7ebf1;border-radius:21px;box-shadow:0 4px 14px #122b4a08}
.fju-youth-profile-summary{display:flex;align-items:center;gap:13px;min-width:0}
.fju-youth-avatar-wrap{
 width:61px;height:61px;min-width:61px;border-radius:21px;overflow:hidden;
 background:#ffe7ec;display:grid;place-items:center;color:#ac2b49;
 font-size:26px;font-weight:800;border:2px solid #f1d5dc;position:relative
}
.fju-youth-avatar-wrap img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.fju-youth-profile-text{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:3px;flex:1}
#fju-youth-hero-name{max-width:100%;font-size:18px;line-height:1.25;font-weight:850;letter-spacing:-.4px;color:#172538;overflow-wrap:anywhere}
#fju-youth-hero-polo{font-size:12px;color:#68788b;max-width:100%;overflow-wrap:anywhere}
.fju-youth-rank{font-size:10px;font-weight:750;color:#8e2c42;background:#ffedf0;border-radius:100px;padding:5px 10px;line-height:1.1}
.fju-youth-edit{display:grid;place-items:center;align-self:flex-start;width:35px;height:35px;min-width:35px;border-radius:11px;background:#f3f5f8;border:0;color:#42546b;cursor:pointer}
.fju-youth-edit svg{width:17px;height:17px}
.fju-youth-menu-heading{font-size:14px;font-weight:800;color:#39485d;margin:25px 3px 13px;letter-spacing:-.1px}
.fju-youth-app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#fju-account-dialog .fju-youth-tile{
 display:flex;align-items:center;flex-direction:column;justify-content:center;gap:12px;min-width:0;min-height:132px;
 padding:18px 9px;background:#fff;border:1px solid #e7ebf1;border-radius:19px;
 box-shadow:0 4px 14px #122b4a08;color:#23344c;font-size:13px;font-weight:760;line-height:1.2;text-align:center;
 text-decoration:none;cursor:pointer;transition:transform .13s ease,background .13s ease;
 -webkit-tap-highlight-color:transparent
}
#fju-account-dialog .fju-youth-tile:active{transform:scale(.98);background:#f9fafc}
.fju-youth-tile-icon{display:grid;place-items:center;width:55px;height:55px;border-radius:17px;background:#eef4ff;color:#2867bd}
.fju-youth-tile-icon svg{width:27px;height:27px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.fju-youth-tile-icon.blue{background:#eaf1ff;color:#3266bf}
.fju-youth-tile-icon.green{background:#e6f5ee;color:#21845c}
.fju-youth-tile-icon.coral{background:#ffebef;color:#d63a5d}
.fju-youth-tile-icon.amber{background:#fff1df;color:#b8701f}
.fju-youth-tile-icon.violet{background:#f2edfd;color:#7760b2}
.fju-youth-tile-icon.slate{background:#e9eff5;color:#485b73}
.fju-youth-menu-caption{text-align:center;margin:20px 8px 4px;color:#919cab;font-size:11px}
.fju-youth-subpage-head{display:flex;align-items:center;gap:12px;margin:0 0 16px}
#fju-account-dialog .fju-youth-back{border:0;background:#e7ecf3;color:#354b68;border-radius:12px;padding:9px 12px;min-height:38px;white-space:nowrap;font-size:12px;font-weight:750;cursor:pointer}
.fju-youth-subpage-head h3{margin:0;color:#19263b;font-size:17px;line-height:1.25;font-weight:800}
.fju-youth-feature-card{padding:27px 18px 23px;background:#fff;border:1px solid #e5ebf1;border-radius:20px;text-align:center;color:#283951}
.fju-youth-feature-icon{display:grid;place-items:center;width:65px;height:65px;margin:0 auto 18px;border-radius:20px;background:#ffeff2;color:#b52749;font-size:34px;font-weight:500}
.fju-youth-feature-card h4{font-size:17px;margin:0 0 9px;color:#1b293f}
.fju-youth-feature-card p{margin:0 auto 18px;font-size:13px;color:#66768c;line-height:1.7;max-width:310px}
#fju-account-dialog .fju-youth-feature-action{display:inline-flex;align-items:center;justify-content:center;padding:13px 21px;border-radius:12px;color:#fff;background:#bb2644;text-decoration:none;font-weight:760;font-size:12px;min-height:44px}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-collectible{
 margin:0 0 16px;width:100%;max-width:100%;border-radius:18px;
 box-shadow:0 9px 22px #19273b15
}
#fju-account-dialog[data-fju-view="account"] .fju-account-identity{
 background:#fff;border:1px solid #e4e8ee;color:#263954;border-radius:16px;padding:15px;margin:0 0 12px
}
#fju-account-dialog[data-fju-view="account"] .fju-account-identity-title{color:#7c8798}
#fju-account-dialog[data-fju-view="account"] .fju-account-email{color:#213047;overflow-wrap:anywhere}
#fju-account-dialog[data-fju-view="account"] .fju-account-pill{background:#f1f4f7;color:#4b5b70}
#fju-account-dialog[data-fju-view="account"] .fju-account-church{color:#62738a}
#fju-account-dialog[data-fju-view="account"] .fju-account-avatar{background:#edf2fa;border-color:#d4dfea;color:#334a66}
#fju-account-dialog[data-fju-view="account"] .fju-account-member-note{
 background:#fff;border:1px solid #e1e7f0;color:#546780;border-radius:15px
}
#fju-account-dialog[data-fju-view="account"] .fju-account-admin-box{
 background:#fff;border:1px solid #e1e7ed;color:#44536b;border-radius:15px;margin-bottom:12px
}
#fju-account-dialog[data-fju-view="account"] .fju-account-admin-box h3{color:#244669}
#fju-account-dialog[data-fju-view="account"] .fju-account-admin-box p{color:#536477}
#fju-account-dialog[data-fju-view="account"] .fju-account-admin{background:#e7eef8;color:#24486e!important}
#fju-account-dialog[data-fju-view="account"] #fju-account-logout{color:#bd2545;padding:14px 12px}
#fju-account-dialog[data-fju-view="account"] #fju-preferred-language-settings{
 background:#fff!important;border:1px solid #e1e7ed!important;border-radius:16px!important;
 color:#34445a!important;padding:17px!important
}
#fju-account-dialog[data-fju-view="account"] #fju-preferred-language-select{background:#f5f7fa!important;color:#243950!important;border-color:#d3dce8!important}
#fju-account-dialog .fju-youth-tile:focus-visible,
#fju-account-dialog .fju-youth-back:focus-visible,
#fju-account-dialog .fju-youth-edit:focus-visible{outline:3px solid #ac3956;outline-offset:2px}
@media(max-width:740px){
 #fju-account-dialog[data-fju-view="account"]{width:calc(100vw - 18px);max-width:500px;max-height:calc(100dvh - 26px);border-radius:22px}
 #fju-account-dialog[data-fju-view="account"] .fju-account-body{padding:15px 15px 22px}
 .fju-youth-greeting{padding:17px}
 #fju-account-dialog .fju-youth-tile{min-height:120px}
}
@media(prefers-reduced-motion:reduce){#fju-account-dialog .fju-youth-tile{transition:none}}

/* Conta autenticada: alteração de senha discreta dentro de Meu Perfil. */
#fju-account-dialog[data-fju-view="account"] .fju-profile-security{
 margin:12px 0 0;padding:16px;background:#fff;border:1px solid #e4e8ee;border-radius:16px;color:#243950
}
.fju-profile-security-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fju-profile-security-head h4{margin:0;font-size:14px;font-weight:800;color:#243950}
#fju-account-dialog[data-fju-view="account"] #fju-profile-password-toggle{
 background:#f0f3f8;border:1px solid #dae3ed;border-radius:10px;color:#294666;
 font-size:12px;font-weight:750;min-height:39px;padding:8px 12px;cursor:pointer
}
#fju-profile-password-form{margin-top:15px!important;display:grid;gap:8px}
#fju-account-dialog[data-fju-view="account"] #fju-profile-password-form label{display:block;color:#3e536e;margin:8px 0 0;font-size:12px}
#fju-account-dialog[data-fju-view="account"] #fju-profile-password-form input{
 background:#f8fafc;border:1px solid #cfdae7;color:#223b58;border-radius:10px;
 width:100%;min-height:44px;padding:10px 12px;font-size:16px
}
#fju-account-dialog[data-fju-view="account"] #fju-profile-password-save{
 background:#b91c36;color:#fff;border:0;border-radius:10px;min-height:44px;
 font-size:13px;font-weight:750;padding:10px 16px;margin-top:6px;cursor:pointer
}
#fju-profile-password-save:disabled{opacity:.6;cursor:wait}
#fju-profile-password-status{font-size:12px;line-height:1.55;color:#3c607f;margin:8px 0 0}
#fju-profile-password-status:empty{display:none}
#fju-profile-password-toggle:focus-visible,#fju-profile-password-save:focus-visible{outline:3px solid #a42b47;outline-offset:2px}


/* MY PAGE — profile settings refresh: photo first, compact membership card, calm sections. */
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane>p:first-child{
 margin:2px 2px 14px!important;color:#738198!important;font-size:13px!important;line-height:1.55!important
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-card{
 box-sizing:border-box;display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px 15px;
 width:100%;margin:0 0 16px;padding:17px;background:#fff;border:1px solid #e1e7f0;border-radius:20px;
 box-shadow:0 5px 18px rgba(20,43,80,.045);color:#1d2d45
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-card h3{
 grid-column:1/-1;margin:0;color:#1c2c45;font-size:17px;line-height:1.25;font-weight:820;letter-spacing:-.25px
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-hint{
 grid-column:1/-1;margin:0 0 4px;color:#718098;font-size:12px;line-height:1.5
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-preview{
 position:relative;display:grid;place-items:center;width:76px;height:76px;overflow:hidden;border-radius:50%;
 border:3px solid #e5edf9;background:linear-gradient(145deg,#eaf1fc,#d6e4f8);color:#31558b
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-preview img{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-placeholder{font-size:29px;font-weight:850}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-controls{display:grid;grid-template-columns:1fr;gap:8px;min-width:0}
#fju-account-dialog[data-fju-view="account"] #fju-profile-photo-input{
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-choose,
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-save{
 display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:42px;padding:10px 13px;
 border-radius:12px;font-size:12px;font-weight:780;text-align:center;cursor:pointer
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-choose{
 border:1px solid #d8e2f0;background:#f4f7fc;color:#29466f
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-save{
 border:0;background:#294b87;color:#fff;box-shadow:0 4px 10px #294b8720
}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-save:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
#fju-account-dialog[data-fju-view="account"] .fju-profile-photo-status{
 grid-column:1/-1;min-height:0;margin:0;color:#54708f;font-size:11px;line-height:1.45
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-collectible{
 max-width:100%;margin:0 0 16px;border-radius:20px;box-shadow:0 7px 22px rgba(20,43,80,.08)
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-top{
 padding:13px 16px;font-size:9px;letter-spacing:1px
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-photo-frame{
 height:142px;background:linear-gradient(125deg,#e8f0fc,#c7d9f4)
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-monogram{font-size:44px;opacity:.42}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane #fju-member-card-name{
 margin:15px 16px 3px;font-size:23px
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-details{margin:10px 16px 0;gap:7px}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-details span{padding:7px 10px;font-size:11px}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane #fju-member-card-rank{
 margin:11px 16px 12px;padding:7px 11px;font-size:12px
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-bottom{
 margin:0 16px;padding-top:11px;font-size:9px
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-account-identity{
 margin:0 0 12px;padding:15px;border-radius:17px
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-profile-security{
 margin-top:12px;padding:15px;border-radius:17px
}
@media(max-width:420px){
 #fju-account-dialog[data-fju-view="account"] .fju-profile-photo-card{grid-template-columns:66px minmax(0,1fr);gap:8px 12px;padding:15px}
 #fju-account-dialog[data-fju-view="account"] .fju-profile-photo-preview{width:66px;height:66px}
 #fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-photo-frame{height:128px}
}


/* Youth member identity card: compact, personal, and not an event banner. */
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-collectible{
  display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:auto auto auto auto auto;
  align-items:center;column-gap:14px;row-gap:0;
  width:min(100%,430px);max-width:100%;margin:0 auto 16px;padding:0;
  overflow:hidden;border:1px solid #dce6f3;border-radius:18px;
  background:#fff;color:#172b4d;text-align:left;
  box-shadow:0 8px 24px rgba(20,43,80,.08)
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-top{
  grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:space-between;
  gap:8px;margin:0;padding:13px 16px;background:linear-gradient(110deg,#142e5a,#28549a);
  color:#fff;font-size:9px;font-weight:850;letter-spacing:1.25px
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-photo-frame{
  grid-column:1;grid-row:2/5;align-self:center;justify-self:center;
  width:76px;height:76px;min-width:76px;margin:14px 0 14px 12px;
  border:3px solid #e4edf9;border-radius:50%;background:#edf3fb;
  display:grid;place-items:center;overflow:hidden
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-photo-frame img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center 35%;border-radius:50%
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-monogram{
  font-size:23px;font-weight:900;color:#31558b;opacity:.55
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane #fju-member-card-name{
  grid-column:2;grid-row:2;align-self:end;display:block;
  margin:13px 14px 3px 0;font-size:21px;line-height:1.2;font-weight:900;
  letter-spacing:-.35px;color:#172f59;overflow-wrap:anywhere
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-details{
  grid-column:2;grid-row:3;justify-content:flex-start;gap:6px;
  margin:2px 12px 0 0;min-width:0
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-details span{
  display:inline-flex;align-items:center;max-width:100%;padding:6px 9px;
  border:1px solid #dce7f7;border-radius:999px;background:#f2f6fc;
  color:#294b7d;font-size:10px;font-weight:800;line-height:1.2;overflow-wrap:anywhere
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane #fju-member-card-project{display:none!important}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane #fju-member-card-rank{
  grid-column:2;grid-row:4;justify-self:start;align-self:start;
  display:inline-flex;width:max-content;max-width:calc(100% - 14px);
  margin:7px 14px 14px 0;padding:6px 11px;border:0;border-radius:999px;
  background:#e4f5ed;color:#176b50;font-size:11px;font-weight:850;line-height:1.2
}
#fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-bottom{
  grid-column:1/-1;grid-row:5;margin:0 15px;padding:11px 0 13px;
  border-top:1px solid #e7edf5;color:#71829c;text-align:center;
  font-size:9px;font-weight:850;letter-spacing:1.05px
}
@media(max-width:420px){
  #fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-collectible{
    grid-template-columns:78px minmax(0,1fr);column-gap:11px
  }
  #fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane .fju-member-card-photo-frame{
    width:68px;height:68px;min-width:68px;margin-left:10px
  }
  #fju-account-dialog[data-fju-view="account"] #fju-youth-profile-pane #fju-member-card-name{
    font-size:19px;margin-right:10px
  }
}


/* Youth profile: the connected-account panel does not need a third avatar. */
#fju-youth-profile-pane .fju-account-identity .fju-account-avatar{display:none!important}
#fju-youth-profile-pane .fju-account-identity{padding-top:22px}


/* One profile photo only: the member card is the single visible photo preview. */
#fju-my-page-photo-upload .fju-profile-photo-preview{display:none!important}
#fju-my-page-photo-upload .fju-profile-photo-controls{width:100%;margin-top:18px}


/* iPhone: upload controls use the full card width when the photo is shown only on the FJU card. */
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload{
  grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:17px!important
}
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload h3,
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload .fju-profile-photo-hint,
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload .fju-profile-photo-controls,
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload .fju-profile-photo-status{
  grid-column:1/-1!important;width:100%!important;min-width:0!important;box-sizing:border-box!important
}
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload .fju-profile-photo-controls{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin:4px 0 0!important
}
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload .fju-profile-photo-choose,
#fju-account-dialog[data-fju-view="account"] #fju-my-page-photo-upload .fju-profile-photo-save{
  width:100%!important;min-width:0!important;min-height:54px!important;padding:14px 16px!important;
  white-space:nowrap!important;overflow:visible!important;font-size:15px!important;line-height:1.2!important
}


/* Troca de foto no próprio avatar, estilo Facebook */
.fju-youth-avatar-wrap.fju-youth-avatar-editable{position:relative;overflow:visible}
.fju-youth-avatar-camera{
 position:absolute;right:-3px;bottom:-3px;z-index:3;display:grid;place-items:center;
 width:29px;height:29px;padding:0;border:2px solid #fff;border-radius:50%;
 background:#edf1f6;color:#27364b;box-shadow:0 2px 7px #14243b30;cursor:pointer
}
.fju-youth-avatar-camera svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fju-youth-avatar-camera:disabled{opacity:.65;cursor:wait}
.fju-profile-photo-inline{position:absolute;width:1px;height:1px;overflow:visible}
.fju-youth-avatar-photo-status{position:absolute;left:0;top:calc(100% + 8px);z-index:4;width:max-content;max-width:min(260px,70vw);font-size:10px;line-height:1.35;color:#52647c}
