.passport-profile { padding: 18px; overflow: auto; height: 100%; box-sizing: border-box; background: #f4f7fb; color: #153754; }
.passport-profile [hidden] { display: none !important; }
.passport-profile__notice { padding: 9px 12px; margin: 0 0 14px; background: #e7f7bf; border: 1px solid #99be52; font-size: 12px; line-height: 1.45; }
.passport-profile__card { display: flex; gap: 16px; align-items: center; padding: 18px; background: linear-gradient(120deg,#156fc3,#073d8c); color: #fff; border: 1px solid #003679; border-radius: 8px; }
.passport-profile__card img { border: 3px solid white; border-radius: 6px; flex-shrink: 0; }
.passport-profile__card div { min-width: 0; }
.passport-profile__card h2 { margin: 4px 0; font-size: 26px; overflow-wrap: anywhere; }
.passport-profile__card p { margin: 4px 0 0; font-size: 13px; }
.passport-profile__card small { font-weight: bold; letter-spacing: 1px; }
.passport-profile__benefits { margin: 18px 0 0; }
.passport-profile__benefits h3 { margin: 0 0 5px; font-size: 18px; color: #123f70; }
.passport-profile__intro { margin: 0 0 12px; line-height: 1.5; }
.passport-profile__benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.passport-profile__benefit { min-width: 0; padding: 12px; border: 1px solid #a4b8cf; border-radius: 5px; background: #fff; }
.passport-profile__benefit h4 { margin: 9px 0 6px; font-size: 14px; line-height: 1.4; }
.passport-profile__benefit p { margin: 0; font-size: 12px; line-height: 1.55; color: #3c5369; }
.passport-profile__availability { display: inline-block; padding: 3px 6px; border: 1px solid #b5c5d8; border-radius: 3px; background: #edf2f9; color: #37516d; font-size: 10px; font-weight: bold; letter-spacing: .3px; }
.passport-profile__availability--ready { border-color: #8eb666; background: #ecf6e3; color: #315e1c; }
.passport-profile__roadmap-note { margin: 10px 0 0; padding: 9px 11px; border-left: 3px solid #6e98c2; background: #eaf1fa; font-size: 12px; line-height: 1.5; }
.passport-profile__message { line-height: 1.5; min-height: 1.5em; margin: 14px 0 10px; }
.passport-profile__message.is-error { color: #9d1717; }
.passport-profile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.passport-profile fieldset { border: 1px solid #a4b8cf; padding: 14px; margin: 0; border-radius: 4px; background: #fff; min-width: 0; }
.passport-profile legend, .passport-profile__label, .passport-profile label { font-weight: bold; }
.passport-profile input[type="text"] { display: block; box-sizing: border-box; width: 100%; font-size: 16px; min-height: 44px; margin-top: 6px; padding: 8px; color: #153754; background: white; }
.passport-profile__hint { color: #4a6279; font-size: 12px; line-height: 1.5; margin: 8px 0 12px; }
.passport-profile__avatars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.passport-profile__avatars button { padding: 3px; border: 2px solid #6c8bae; border-radius: 5px; background: #e9eff7; cursor: pointer; min-width: 48px; min-height: 48px; }
.passport-profile__avatars img { display: block; width: 48px; height: 48px; border-radius: 2px; }
.passport-profile__avatars button[aria-pressed="true"] { border-color: #20731b; outline: 2px solid #80d34c; }
.passport-profile__privacy { display: flex; align-items: center; gap: 8px; line-height: 1.4; min-height: 44px; }
.passport-profile input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }
.passport-profile .xp-btn { min-height: 44px; }
.passport-profile__save { width: 100%; font-weight: bold; }
.passport-profile button:focus-visible, .passport-profile input:focus-visible { outline: 3px solid #087bd1; outline-offset: 3px; }
.passport-profile fieldset:disabled { opacity: .65; }
/* A phone rotating to landscape must not keep the old portrait pixel height.
   Scope this to Passport; leave other desktop/game windows untouched. */
@media (pointer: coarse) and (max-width: 1000px) {
  .win[data-app="profile"] { inset: 0 !important; width: auto !important; height: auto !important; border-width: 0; border-radius: 0; }
  .win[data-app="profile"] .win__bar { min-height: 44px; height: auto; padding-top: env(safe-area-inset-top, 0px); }
  .win[data-app="profile"] .win__btns { margin-right: 12px; }
  .win[data-app="profile"] .win__btn--min,
  .win[data-app="profile"] .win__btn--max,
  .win[data-app="profile"] .win__grip { display: none; }
  #desktop:has(.win[data-app="profile"]:not(.is-min):not(.is-blur)) #clip { display: none; }
}
@media (max-width: 500px) {
  .passport-profile { padding: 12px; }
  .passport-profile__card { padding: 12px; gap: 10px; }
  .passport-profile__card h2 { font-size: 22px; }
  .passport-profile__card img { width: 58px; height: 58px; }
  .passport-profile__actions .xp-btn { flex: 1 1 140px; }
  .passport-profile__avatars { gap: 6px; }
}
