.ivfp-page {
  --ivfp-green: #123d38;
  --ivfp-green-deep: #0b2929;
  --ivfp-paper: #f6eedc;
  --ivfp-paper-deep: #eadcc1;
  --ivfp-gold: #c9ae63;
  --ivfp-ink: #282b27;
  --ivfp-muted: #716957;
  --ivfp-red: #a5363e;
  --ivfp-discord: #5865f2;
  --ivfp-line: rgba(70, 57, 31, .18);
  padding: 8px 0 52px;
}

.ivfp-command {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(123, 194, 232, .2);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 74% 7%, rgba(101, 196, 236, .22), transparent 24rem),
    linear-gradient(123deg, #06162d 0%, #0a294e 58%, #0d3d6c 100%);
  box-shadow: 0 24px 62px rgba(8, 35, 66, .2);
}

.ivfp-command::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.ivfp-command::after {
  position: absolute;
  z-index: 0;
  top: -168px;
  right: -82px;
  width: 390px;
  height: 390px;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(255,255,255,.035),
    0 0 0 100px rgba(255,255,255,.02);
  content: "";
}

.ivfp-command .ivfp-heading {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 205px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 0;
  padding: 39px 44px 30px;
}

.ivfp-page .ivfp-heading h1 {
  margin: 15px 0 9px;
  color: #fff !important;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.ivfp-page .ivfp-heading p {
  max-width: 720px;
  margin: 0;
  color: rgba(231, 243, 255, .79);
  font-size: 15px;
  line-height: 1.65;
}

.ivfp-page .ivfp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b9e9ff;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}

.ivfp-page .ivfp-eyebrow::before {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #35d6a4;
  box-shadow: 0 0 0 5px rgba(53, 214, 164, .14);
  content: "";
}

.ivfp-page .ivfp-active-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #e8f8f1;
  background: rgba(255,255,255,.08);
  font-size: 13px;
  font-weight: 650;
}

.ivfp-page .ivfp-active-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4be0a8;
  box-shadow: 0 0 0 5px rgba(75,224,168,.13);
}

/* Passport section tabs */
.ivfp-command .fp-nav {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 18px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ivfp-command .fp-nav-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 1px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(1,18,39,.16);
}

.ivfp-command .fp-nav-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 15px;
  border: 0;
  border-radius: 0;
  color: #edf6ff !important;
  background: rgba(4, 24, 47, .54);
  box-shadow: none;
  transition: color .18s ease, background-color .18s ease;
}

.ivfp-command .fp-nav-item:hover {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}

.ivfp-command .fp-nav-item.is-active {
  color: #5f2027 !important;
  background: linear-gradient(145deg, #fffdfa, #f5eadb);
  box-shadow: inset 0 -3px 0 rgba(165, 54, 62, .62);
}

.ivfp-command .fp-nav-ico {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(159,220,245,.25);
  border-radius: 50%;
  color: #9fdcf5;
  background: rgba(159,220,245,.1);
  font-size: 15px;
}

.ivfp-command .is-active .fp-nav-ico {
  border-color: rgba(165, 54, 62, .18);
  color: var(--ivfp-red);
  background: rgba(165, 54, 62, .08);
}

.ivfp-command .fp-nav-copy,
.ivfp-command .fp-nav-copy small,
.ivfp-command .fp-nav-text {
  display: block;
}

.ivfp-command .fp-nav-copy small {
  margin-bottom: 2px;
  color: rgba(203,224,243,.64);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}

.ivfp-command .fp-nav-text {
  color: inherit;
  font-size: 15px;
  font-weight: 650;
}

.ivfp-command .fp-nav-item.is-active .fp-nav-copy small {
  color: #8b6d68;
}

.ivfp-viewing {
  margin: 16px 0 0;
  font-size: 14px;
}

/* The passport is the visual signature */
.ivfp-page .passport-shell {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(61, 48, 24, .25);
  border-radius: 20px;
  background: var(--ivfp-paper);
  box-shadow: 0 25px 60px rgba(33, 28, 17, .18);
}

.ivfp-page .ivfp-cover-bar {
  position: relative;
  z-index: 2;
  min-height: 82px;
  padding: 15px 19px;
  border-bottom: 3px solid var(--ivfp-gold);
  background:
    radial-gradient(circle at 14% 20%, rgba(207, 184, 112, .1), transparent 180px),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px),
    linear-gradient(115deg, var(--ivfp-green), var(--ivfp-green-deep));
}

.ivfp-page .ivfp-cover-identity {
  position: relative;
  padding-left: 16px;
}

.ivfp-page .ivfp-cover-identity::before {
  position: absolute;
  inset: 2px auto 2px 0;
  width: 3px;
  border-radius: 99px;
  background: var(--ivfp-gold);
  box-shadow: 0 0 14px rgba(224, 203, 138, .32);
  content: "";
}

.ivfp-page .ivfp-cover-identity strong {
  color: #f0dfa9;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .12em;
}

.ivfp-page .ivfp-cover-identity > div > small {
  margin-top: 4px;
  color: rgba(240, 223, 169, .72);
  font-size: 11px;
}

.ivfp-week-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ivfp-week-pager > a,
.ivfp-week-pager > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(227, 208, 146, .36);
  border-radius: 11px;
  color: #f0dfa9 !important;
  background: rgba(255,255,255,.045);
}

.ivfp-week-pager > a:hover {
  border-color: rgba(240, 223, 169, .72);
  background: rgba(255,255,255,.1);
}

.ivfp-week-pager > .is-disabled {
  opacity: .32;
}

.ivfp-page .ivfp-week-form {
  position: relative;
  display: block;
  min-width: 190px;
}

.ivfp-page .ivfp-week-form label,
.ivfp-page .ivfp-week-form label small,
.ivfp-page .ivfp-week-form label span {
  display: block;
}

.ivfp-page .ivfp-week-form label {
  margin: 0;
  padding: 4px 35px 4px 10px;
  color: #f3e4b8 !important;
  cursor: pointer;
}

.ivfp-page .ivfp-week-form label small {
  margin-bottom: 1px;
  color: rgba(243, 228, 184, .58);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
}

.ivfp-page .ivfp-week-form label span {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}

.ivfp-page .ivfp-week-form select {
  position: absolute;
  inset: 0;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

.ivfp-page .ivfp-paper {
  position: relative;
  padding: 30px 30px 38px 66px;
  color: var(--ivfp-ink);
  background:
    repeating-linear-gradient(0deg, rgba(81, 65, 34, .022) 0 1px, transparent 1px 24px),
    radial-gradient(circle at 85% 16%, rgba(168, 135, 65, .1), transparent 260px),
    linear-gradient(135deg, #faf4e8, var(--ivfp-paper));
}

.ivfp-page .ivfp-paper::before {
  width: 40px;
  border-right: 1px solid rgba(57, 42, 18, .1);
  background:
    linear-gradient(90deg, rgba(31, 23, 11, .18), transparent 65%),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(66, 49, 21, .08) 14px 15px),
    linear-gradient(90deg, #d8c9aa, #efe5d1);
}

.ivfp-security-pattern {
  position: absolute;
  top: 30px;
  right: -70px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(36, 86, 81, .07);
  border-radius: 50%;
  box-shadow: inset 0 0 0 17px rgba(36,86,81,.025), inset 0 0 0 36px rgba(36,86,81,.025), inset 0 0 0 55px rgba(36,86,81,.025);
  pointer-events: none;
}

.ivfp-page .passport-watermark {
  top: 20px;
  right: 28px;
  color: rgba(18, 61, 56, .055);
  font-family: Georgia, serif;
  font-size: 92px;
  font-weight: 500;
}

.ivfp-page .ivfp-visa-row {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(340px, 1.08fr) minmax(300px, .92fr);
  gap: 16px;
  padding: 0 0 20px;
}

.ivfp-page .ivfp-passport-id {
  position: relative;
  min-height: 116px;
  padding: 14px 18px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--ivfp-line);
  border-radius: 3px 15px 15px 3px;
  background: rgba(255,255,255,.43);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}

.ivfp-page .ivfp-passport-id::after {
  position: absolute;
  right: -23px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border: 2px double rgba(165, 54, 62, .11);
  border-radius: 50%;
  content: "";
}

.ivfp-page .ivfp-passport-photo {
  width: 78px;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(57, 47, 29, .24);
  border-radius: 2px;
  background: #e8dfca;
}

.ivfp-page .ivfp-passport-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.85) contrast(1.03);
}

.ivfp-id-copy {
  min-width: 0;
}

.ivfp-page .ivfp-passport-id .ivfp-id-copy > span {
  color: #88785b;
  font-size: 11px;
  font-weight: 600;
}

.ivfp-page .ivfp-passport-id strong {
  margin: 7px 0;
  color: #292c28;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.ivfp-page .ivfp-passport-id small {
  color: #746b58;
  font-size: 12px;
}

.ivfp-page .ivfp-passport-id .ivfp-id-number {
  position: absolute;
  right: 14px;
  bottom: 9px;
  color: rgba(84, 70, 43, .43);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  letter-spacing: .15em;
}

.ivfp-page .ivfp-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 14px 16px 14px 19px;
  border: 1px solid var(--ivfp-line);
  border-radius: 15px 3px 3px 15px;
  background: rgba(255,255,255,.43);
}

.ivfp-progress-copy span,
.ivfp-progress-copy strong,
.ivfp-progress-copy small {
  display: block;
}

.ivfp-progress-copy span {
  color: #88785b;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.ivfp-progress-copy strong {
  margin: 6px 0 3px;
  color: #2d302a;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}

.ivfp-progress-copy small {
  color: #746b58;
  font-size: 12px;
}

.ivfp-progress-dial {
  display: grid;
  width: 76px;
  height: 76px;
  place-content: center;
  border-radius: 50%;
  text-align: center;
  background: radial-gradient(circle at center, #f8f0df 0 55%, transparent 56%), conic-gradient(var(--ivfp-red) calc(var(--ivfp-progress) * 1%), rgba(93, 76, 45, .13) 0);
  box-shadow: inset 0 0 0 1px rgba(74, 59, 32, .11);
}

.ivfp-progress-dial strong,
.ivfp-progress-dial small {
  display: block;
}

.ivfp-progress-dial strong {
  color: var(--ivfp-ink);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 17px;
  line-height: 1;
}

.ivfp-progress-dial small {
  margin-top: 3px;
  color: #7c705b;
  font-size: 11px;
}

/* Wingman visa */
.ivfp-wingman-visa {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 286px;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  margin: 0 0 27px;
  padding: 17px 20px;
  overflow: visible;
  border: 1px solid rgba(88, 101, 242, .24);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(88,101,242,.07), transparent 31%),
    rgba(255,255,255,.48);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34);
}

.ivfp-wingman-visa::before {
  display: none;
  content: none;
}

.ivfp-wingman-visa.is-earned {
  border-color: rgba(33, 145, 105, .34);
  background: linear-gradient(90deg, rgba(31,157,112,.1), transparent 34%), rgba(255,255,255,.52);
}

.ivfp-wingman-visa.is-pending,
.ivfp-wingman-visa.is-processing {
  border-color: rgba(198, 147, 39, .34);
  background: linear-gradient(90deg, rgba(205,157,52,.1), transparent 34%), rgba(255,255,255,.52);
}

.ivfp-wingman-seal {
  position: relative;
  display: flex;
  width: 78px;
  height: 78px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(88,101,242,.5);
  border-radius: 50%;
  color: var(--ivfp-discord);
  background: rgba(255,255,255,.72);
  box-shadow:
    inset 0 0 0 5px rgba(88,101,242,.055),
    0 7px 18px rgba(65,72,157,.11);
}

.ivfp-wingman-seal svg {
  width: 41px;
  height: 41px;
}

.ivfp-wingman-seal span {
  position: absolute;
  bottom: -7px;
  left: 50%;
  min-width: 70px;
  padding: 3px 7px;
  border-radius: 99px;
  color: #fff;
  background: var(--ivfp-discord);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
}

.ivfp-wingman-copy {
  position: relative;
  z-index: 2;
}

.ivfp-wingman-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 99px;
  color: #424db7;
  background: rgba(88,101,242,.1);
  font-size: 11px;
  font-weight: 650;
}

.is-earned .ivfp-wingman-status {
  color: #087557;
  background: rgba(25,155,108,.11);
}

.is-pending .ivfp-wingman-status,
.is-processing .ivfp-wingman-status {
  color: #7c5a0a;
  background: rgba(205,157,52,.13);
}

.ivfp-wingman-copy h2 {
  margin: 7px 0 4px;
  color: #292c28 !important;
  font-family: Georgia, serif !important;
  font-size: 21px;
  font-weight: 600;
}

.ivfp-wingman-copy p {
  max-width: 680px;
  margin: 0;
  color: #665f51;
  font-size: 13px;
  line-height: 1.48;
}

.ivfp-companions {
  margin-top: 10px;
}

.ivfp-companions > small {
  display: block;
  margin-bottom: 5px;
  color: #85785f;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}

.ivfp-companions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ivfp-companions span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(71, 62, 45, .13);
  border-radius: 99px;
  color: #4c4a43;
  background: rgba(255,255,255,.54);
  font-size: 11px;
}

.ivfp-wingman-action {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 9px;
  justify-items: stretch;
  text-align: left;
}

.ivfp-wingman-reward {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(35, 55, 105, .13);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(237,240,255,.55));
  box-shadow: 0 5px 14px rgba(50, 57, 106, .07);
}

.ivfp-wingman-reward img {
  width: 120px;
  height: 30px;
  flex: none;
  object-fit: contain;
}

.ivfp-wingman-reward span,
.ivfp-wingman-reward small,
.ivfp-wingman-reward strong {
  display: block;
}

.ivfp-wingman-reward small {
  color: #727a93;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
}

.ivfp-wingman-reward strong {
  margin-top: 3px;
  color: #263453;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.ivfp-wingman-goal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.ivfp-wingman-goal > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ivfp-wingman-goal strong {
  color: #34352f;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.ivfp-wingman-goal > small {
  color: #746b59;
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.ivfp-wingman-help-wrap {
  position: relative;
  display: inline-flex;
}

.ivfp-wingman-help {
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(67, 80, 196, .3);
  border-radius: 50%;
  color: #4350c4;
  background: #fff;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: help;
}

.ivfp-wingman-help:hover,
.ivfp-wingman-help:focus-visible {
  border-color: #4350c4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(67,80,196,.12);
}

.ivfp-wingman-tooltip {
  position: absolute;
  right: -8px;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: 320px;
  padding: 12px 13px;
  border: 1px solid rgba(31, 46, 79, .15);
  border-radius: 10px;
  color: #f7f9ff;
  background: #1b2742;
  box-shadow: 0 14px 30px rgba(20, 31, 57, .22);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .16s ease, transform .16s ease;
}

.ivfp-wingman-tooltip::after {
  position: absolute;
  right: 12px;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: #1b2742;
  content: "";
}

.ivfp-wingman-help:hover + .ivfp-wingman-tooltip,
.ivfp-wingman-help:focus + .ivfp-wingman-tooltip,
.ivfp-wingman-help:focus-visible + .ivfp-wingman-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.ivfp-wingman-action > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(88,101,242,.28);
  border-radius: 9px;
  color: #4350c4 !important;
  background: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 650;
  justify-content: center;
}

.ivfp-wingman-approved {
  position: absolute;
  right: 300px;
  bottom: 13px;
  padding: 5px 10px;
  border: 3px double rgba(26, 137, 99, .33);
  border-radius: 5px;
  color: rgba(26, 137, 99, .44);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  transform: rotate(-7deg);
}

/* Stamp pages */
.ivfp-page .ivfp-stamp-heading {
  position: relative;
  z-index: 1;
  align-items: center;
  padding: 0;
  margin: 0 0 17px;
}

.ivfp-page .ivfp-page-number {
  color: #8d7751;
  font-size: 11px;
  font-weight: 600;
}

.ivfp-page .passport-title {
  margin: 4px 0 3px;
  color: #2e302b !important;
  font-family: Georgia, serif !important;
  font-size: 25px;
  font-weight: 600;
}

.ivfp-page .passport-sub {
  max-width: 740px;
  color: #6f6758;
  font-size: 13px;
  line-height: 1.45;
}

.ivfp-page .ivfp-stamp-count {
  min-width: 58px;
  padding: 8px 10px;
  border: 2px double rgba(88, 68, 34, .28);
  color: #675b48;
  text-align: center;
}

.ivfp-page .ivfp-stamp-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

.ivfp-page .passport-stamp {
  --_rot: 0deg;
  --seal-size: 155px;
  --seal-off: -35px;
  display: flex;
  width: 100%;
  min-height: 232px;
  flex-direction: column;
  padding: 15px;
  border-width: 1px;
  border-color: rgba(77, 65, 43, .18);
  border-radius: 7px 15px 7px 15px;
  background: rgba(255,255,255,.5);
  box-shadow: 0 8px 20px rgba(63, 50, 26, .07), inset 0 0 0 1px rgba(255,255,255,.35);
  transform: none;
}

.ivfp-page .passport-stamp:hover {
  box-shadow: 0 12px 25px rgba(63, 50, 26, .1), inset 0 0 0 1px rgba(255,255,255,.45);
  transform: translateY(-2px);
}

.ivfp-page .passport-stamp::before {
  top: var(--seal-off);
  right: var(--seal-off);
  width: var(--seal-size);
  height: var(--seal-size);
  border-width: 2px;
  border-style: dashed;
  border-color: rgba(128, 116, 91, .17);
}

.ivfp-page .passport-stamp.is-earned {
  border-width: 1px;
  border-color: rgba(22, 133, 94, .33);
  background: rgba(255,255,255,.58);
  box-shadow: 0 10px 23px rgba(50, 48, 30, .08), inset 0 0 30px rgba(165,54,62,.035);
}

.ivfp-page .passport-stamp.is-earned::before {
  z-index: 2;
  border-width: 3px;
  border-color: rgba(165, 54, 62, .42);
  box-shadow: inset 0 0 0 8px rgba(165,54,62,.035), inset 0 0 0 20px rgba(165,54,62,.025);
}

.ivfp-page .passport-stamp.is-earned::after {
  z-index: 2;
  opacity: .5;
}

.ivfp-page .passport-stamp.is-locked {
  opacity: .84;
  filter: none;
}

.ivfp-stamp-top {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ivfp-page .stamp-status {
  padding: 5px 8px;
  border: 1px solid rgba(109, 98, 77, .17);
  color: #756c5d;
  background: rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

.ivfp-page .stamp-status .dot {
  width: 6px;
  height: 6px;
  background: #9c9486;
}

.ivfp-page .is-earned .stamp-status {
  color: #087557;
  border-color: rgba(24, 145, 104, .24);
  background: rgba(24,145,104,.08);
}

.ivfp-page .stamp-name {
  position: relative;
  z-index: 7;
  max-width: calc(100% - 108px);
  min-height: 64px;
  margin: 16px 0 6px;
  color: #30322e;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.ivfp-page .stamp-desc {
  position: relative;
  z-index: 7;
  margin: 0;
  color: #6d6658;
  font-size: 12px;
  line-height: 1.45;
}

.ivfp-earned-date {
  position: relative;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  color: #7b3440;
  font-size: 11px;
}

.ivfp-page .stamp-rules {
  position: relative;
  z-index: 7;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(72, 61, 41, .15);
}

.ivfp-page .stamp-rules summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5d584e;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  list-style: none;
}

.ivfp-page .stamp-rules summary::-webkit-details-marker {
  display: none;
}

.ivfp-page .stamp-rules[open] summary i {
  transform: rotate(180deg);
}

.ivfp-page .stamp-rules ul {
  margin-top: 9px;
  color: #6e675a;
  font-size: 11px;
  line-height: 1.42;
}

.ivfp-airports-btn {
  position: relative;
  z-index: 7;
  align-self: flex-start;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(77, 67, 49, .17);
  border-radius: 7px;
  color: #645d50;
  background: rgba(255,255,255,.5);
  font-size: 11px;
  font-weight: 600;
}

.ivfp-airports-btn:hover {
  border-color: rgba(165, 54, 62, .28);
  color: #8a3038;
}

.fp-modal.ivfp-modal-open {
  display: flex !important;
  z-index: 1060;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.fp-modal.ivfp-airports-modal .modal-dialog,
.fp-modal.ivfp-airports-modal.show .modal-dialog {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0;
  text-align: left;
  transform: none;
}

.ivfp-airports-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(31, 48, 72, .16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(19, 32, 55, .28);
}

.ivfp-airports-modal .modal-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 16px 17px;
  border: 0;
  border-bottom: 1px solid #e5eaf0;
  color: #1f3448;
  background: linear-gradient(135deg, #f9fbfd, #f2f5f8);
}

.ivfp-airports-modal-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(165, 54, 62, .18);
  border-radius: 12px;
  color: #96363f;
  background: #fff5f5;
  font-size: 17px;
}

.ivfp-airports-modal-heading {
  min-width: 0;
}

.ivfp-airports-modal-heading small,
.ivfp-airports-modal-heading h5,
.ivfp-airports-modal-heading p {
  display: block;
  margin: 0;
}

.ivfp-airports-modal-heading small {
  color: #718090;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.ivfp-airports-modal-heading h5 {
  margin-top: 2px;
  color: #20374b;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
}

.ivfp-airports-modal-heading p {
  margin-top: 3px;
  overflow: hidden;
  color: #687887;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ivfp-airports-modal-x {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #dce3e9;
  border-radius: 10px;
  color: #526476;
  background: #fff;
  font-size: 14px;
}

.ivfp-airports-modal-x:hover,
.ivfp-airports-modal-x:focus-visible {
  border-color: #aebbc6;
  color: #20374b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(55,91,126,.1);
}

.ivfp-airports-modal .modal-body {
  padding: 16px 17px 17px;
  background: #fff;
}

.ivfp-airports-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: #667686;
  font-size: 12px;
}

.ivfp-airports-summary strong {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #244e72;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 14px;
  font-weight: 650;
}

.ivfp-airports-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ivfp-airports-grid .fp-icao-chip {
  display: inline-flex;
  min-width: 74px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid #dce4eb;
  border-radius: 10px;
  color: #213b52;
  background: #f6f9fb;
  box-shadow: none;
}

.ivfp-airports-grid .fp-icao-chip .mono {
  color: inherit;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .05em;
}

.ivfp-airports-modal .modal-footer {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 17px;
  border: 0;
  border-top: 1px solid #e7ecf0;
  color: #738291;
  background: #fafbfd;
  font-size: 11px;
}

.ivfp-airports-close-btn {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid #244e72;
  border-radius: 9px;
  color: #fff;
  background: #244e72;
  font-size: 12px;
  font-weight: 600;
}

.ivfp-airports-close-btn:hover,
.ivfp-airports-close-btn:focus-visible {
  color: #fff;
  background: #1b3d5a;
  outline: none;
}

.ivfp-airports-backdrop {
  z-index: 1050;
  background: #102033;
  opacity: .56;
}

/* Ranking */
.ivfp-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ivfp-podium-passport {
  position: relative;
  display: grid;
  grid-template-columns: 72px 54px minmax(0, 1fr) auto;
  grid-template-areas:
    "rank avatar name total"
    "rank avatar week total"
    "rank avatar caption total";
  gap: 7px 13px;
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--iv-line);
  border-top: 4px solid #a9b1ba;
  border-radius: 16px;
  color: var(--iv-text-strong) !important;
  background: linear-gradient(135deg, #fff, #f6f8fa);
  box-shadow: 0 12px 28px rgba(29, 48, 66, .1);
}

.ivfp-podium-passport::after {
  display: none;
  content: none;
}

.ivfp-podium-passport:hover {
  border-color: rgba(36, 91, 134, .25);
  color: var(--iv-text-strong) !important;
  transform: translateY(-2px);
}

.ivfp-podium-passport.is-place-1 {
  border-top-color: #c49b35;
  background: linear-gradient(135deg, #fffdf7, #f8f3e4);
  box-shadow: 0 14px 31px rgba(119, 89, 25, .13);
}

.ivfp-podium-passport.is-place-2 {
  border-top-color: #8f9aa8;
}

.ivfp-podium-passport.is-place-3 {
  border-top-color: #ac704c;
  background: linear-gradient(135deg, #fff, #faf4ef);
}

.ivfp-podium-rank {
  display: grid;
  grid-area: rank;
  align-self: center;
  min-height: 82px;
  place-content: center;
  border: 1px solid #d9e0e6;
  border-radius: 13px;
  color: #526474;
  background: #f2f5f7;
  text-align: center;
}

.ivfp-podium-rank small,
.ivfp-podium-rank strong {
  display: block;
}

.ivfp-podium-rank small {
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.ivfp-podium-rank strong {
  margin-top: 5px;
  color: #223a4d;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.ivfp-podium-rank sup {
  position: relative;
  top: -.75em;
  margin-left: 1px;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 12px;
}

.ivfp-podium-passport.is-place-1 .ivfp-podium-rank {
  border-color: rgba(178, 134, 31, .3);
  color: #765b18;
  background: linear-gradient(145deg, #fff9df, #f0e2ad);
}

.ivfp-podium-passport.is-place-1 .ivfp-podium-rank strong {
  color: #6c5011;
}

.ivfp-podium-passport.is-place-2 .ivfp-podium-rank {
  border-color: rgba(111, 126, 142, .27);
  color: #596775;
  background: linear-gradient(145deg, #f8fafc, #dfe5ea);
}

.ivfp-podium-passport.is-place-3 .ivfp-podium-rank {
  border-color: rgba(159, 97, 57, .27);
  color: #7c4a2e;
  background: linear-gradient(145deg, #fff8f3, #ead5c6);
}

.ivfp-podium-passport.is-place-3 .ivfp-podium-rank strong {
  color: #704127;
}

.ivfp-podium-passport > img {
  position: relative;
  z-index: 1;
  grid-area: avatar;
  align-self: center;
  width: 54px;
  height: 62px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 0 5px 13px rgba(31, 57, 78, .14);
}

.ivfp-podium-name {
  position: relative;
  z-index: 1;
  align-self: center;
  grid-area: name;
  min-width: 0;
}

.ivfp-podium-name strong,
.ivfp-podium-name small {
  display: block;
}

.ivfp-podium-name strong {
  color: #21394c;
  font-size: 14px;
  font-weight: 650;
}

.ivfp-podium-name small,
.ivfp-podium-caption {
  margin-top: 4px;
  color: #6d7c88;
  font-size: 12px;
}

.ivfp-podium-total {
  display: grid;
  grid-area: total;
  align-self: center;
  min-width: 54px;
  justify-items: end;
  text-align: right;
}

.ivfp-podium-total strong,
.ivfp-podium-total small {
  display: block;
}

.ivfp-podium-total strong {
  color: #223a4d;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.ivfp-podium-total small {
  margin-top: 4px;
  color: #6d7c88;
  font-size: 11px;
}

.ivfp-podium-week {
  position: relative;
  z-index: 1;
  grid-area: week;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe6eb;
}

.ivfp-podium-week span {
  display: block;
  height: 100%;
  background: var(--ivfp-gold);
}

.ivfp-podium-caption {
  position: relative;
  z-index: 1;
  grid-area: caption;
  margin: -5px 0 0;
}

.ivfp-ranking-ledger,
.ivfp-debrief-book {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--iv-line);
  border-radius: 17px;
  background: var(--iv-surface);
  box-shadow: var(--iv-shadow-sm);
}

.ivfp-page .ivfp-ranking-head {
  padding: 19px 21px;
}

.ivfp-ledger-kicker,
.ivfp-ranking-head strong,
.ivfp-ranking-head small {
  display: block;
}

.ivfp-ledger-kicker {
  margin-bottom: 2px;
  color: var(--iv-blue);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.ivfp-page .ivfp-ranking-head strong {
  font-size: 19px;
  font-weight: 680;
}

.ivfp-page .ivfp-ranking-head small {
  font-size: 12px;
}

.ivfp-page .ivfp-search input {
  min-width: 270px;
  height: 42px;
  font-size: 13px;
}

.ivfp-ranking-columns {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 90px 20px;
  gap: 14px;
  padding: 10px 21px 9px 73px;
  border-bottom: 1px solid var(--iv-line);
  color: var(--iv-muted);
  background: var(--iv-surface-soft);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ivfp-page .ivfp-ranking-row {
  grid-template-columns: 34px 44px minmax(170px, 1fr) 170px 90px 20px;
  gap: 11px;
  min-height: 76px;
  padding: 11px 21px;
}

.ivfp-page .ivfp-rank-number {
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.ivfp-page .ivfp-rank-avatar {
  overflow: hidden;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #eaf2f8;
  box-shadow: 0 4px 11px rgba(28, 59, 88, .12);
}

.ivfp-rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivfp-page .ivfp-rank-pilot strong {
  font-size: 14px;
  font-weight: 650;
}

.ivfp-page .ivfp-rank-pilot small,
.ivfp-page .ivfp-rank-progress small {
  font-size: 11px;
}

.ivfp-rank-week {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}

.ivfp-rank-week > span {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--iv-line);
}

.ivfp-rank-week > span i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--iv-blue), #54b8e6);
}

.ivfp-rank-week small {
  color: var(--iv-muted);
  font-size: 11px;
}

.ivfp-search-empty {
  padding: 26px;
  color: var(--iv-muted);
  text-align: center;
}

/* Recent stamps */
.ivfp-debrief-book-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 20px;
  color: #eddda8;
  background: linear-gradient(110deg, var(--ivfp-green), var(--ivfp-green-deep));
}

.ivfp-debrief-book-head span,
.ivfp-debrief-book-head strong {
  display: block;
}

.ivfp-debrief-book-head span {
  color: rgba(237,221,168,.62);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.ivfp-debrief-book-head strong {
  margin-top: 2px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.ivfp-debrief-book-head > small {
  color: rgba(237,221,168,.72);
  font-size: 12px;
}

.ivfp-page .ivfp-debrief-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--iv-line);
}

.ivfp-debrief-entry {
  display: grid;
  grid-template-columns: minmax(170px, .9fr) minmax(250px, 1.35fr) 128px 68px 72px;
  grid-template-areas: "pilot stamp route time actions";
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 11px 16px;
  background: var(--iv-surface);
}

.ivfp-debrief-entry.is-collapsed {
  display: none;
}

.ivfp-debrief-pilot,
.ivfp-debrief-stamp {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ivfp-debrief-pilot {
  grid-area: pilot;
}

.ivfp-debrief-stamp {
  grid-area: stamp;
}

.ivfp-debrief-stamp > div {
  min-width: 0;
}

.ivfp-debrief-avatar {
  width: 38px;
  height: 38px;
  flex: none;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #edf3f7;
  box-shadow: 0 4px 10px rgba(31,59,87,.12);
}

.ivfp-debrief-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ivfp-debrief-pilot small,
.ivfp-debrief-pilot strong,
.ivfp-debrief-stamp small,
.ivfp-debrief-stamp strong {
  display: block;
}

.ivfp-debrief-pilot small,
.ivfp-debrief-stamp small {
  color: var(--iv-muted);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

.ivfp-debrief-pilot strong {
  max-width: 150px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--iv-text-strong);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ivfp-debrief-stamp strong {
  max-width: none;
  margin-top: 3px;
  overflow: visible;
  color: var(--iv-text-strong);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.ivfp-page .ivfp-debrief-seal {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 2px double rgba(165, 54, 62, .52);
  border-radius: 50%;
  color: var(--ivfp-red);
  background: rgba(165,54,62,.045);
  transform: rotate(-8deg);
}

.ivfp-debrief-seal small {
  margin-top: -11px;
  color: inherit;
  font-size: 9px;
}

.ivfp-page .ivfp-debrief-route {
  grid-area: route;
  justify-content: center;
  margin: 0;
  font-size: 12px;
}

.ivfp-debrief-entry > time {
  grid-area: time;
  color: var(--iv-text);
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 11px;
  text-align: center;
}

.ivfp-debrief-entry > time small {
  display: block;
  margin-top: 3px;
  color: var(--iv-muted);
}

.ivfp-debrief-actions {
  display: flex;
  grid-area: actions;
  gap: 6px;
  justify-content: flex-end;
}

.ivfp-debrief-actions a {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--iv-line);
  border-radius: 8px;
  color: var(--iv-blue) !important;
  background: var(--iv-surface-soft);
}

.ivfp-debrief-more {
  display: flex;
  justify-content: center;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--iv-line);
  background: linear-gradient(180deg, #fbfcfd, #f4f7f9);
}

.ivfp-debrief-more-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 7px 8px;
  border: 1px solid #cbd7e1;
  border-radius: 12px;
  color: #1f4161;
  background: #fff;
  box-shadow: 0 5px 14px rgba(30, 60, 88, .07);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ivfp-debrief-more-btn:hover,
.ivfp-debrief-more-btn:focus-visible {
  border-color: #7895af;
  color: #173754;
  box-shadow: 0 8px 18px rgba(30, 60, 88, .12);
  outline: none;
  transform: translateY(-1px);
}

.ivfp-debrief-more-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #2d5f8c, #1e4569);
  font-size: 10px;
}

.ivfp-debrief-more-btn small {
  min-width: 34px;
  padding: 3px 7px;
  border-radius: 8px;
  color: var(--iv-muted);
  background: #eef3f7;
  font-family: var(--iv-font-data, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 600;
}

body.iv2026-shell.dark-mode .ivfp-page .fp-nav-item.is-active {
  color: #ffb2b8 !important;
  background: linear-gradient(145deg, #213247, #2a2637);
}

body.iv2026-shell.dark-mode .ivfp-command .fp-nav-item.is-active {
  color: #5f2027 !important;
  background: linear-gradient(145deg, #fffdfa, #f5eadb);
}

body.iv2026-shell.dark-mode .ivfp-ranking-ledger,
body.iv2026-shell.dark-mode .ivfp-debrief-book,
body.iv2026-shell.dark-mode .ivfp-debrief-entry {
  background: var(--iv-surface);
}

@media (max-width: 1180px) {
  .ivfp-page .ivfp-stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ivfp-page .ivfp-debrief-feed { grid-template-columns: 1fr; }
  .ivfp-debrief-entry { grid-template-columns: minmax(170px, .9fr) minmax(230px, 1.25fr) 120px 68px 70px; }
}

@media (max-width: 900px) {
  .ivfp-page .fp-nav-inner { grid-template-columns: 1fr; }
  .ivfp-page .ivfp-visa-row { grid-template-columns: 1fr; }
  .ivfp-page .ivfp-progress-card { border-radius: 15px; }
  .ivfp-page .ivfp-passport-id { border-radius: 15px; }
  .ivfp-wingman-visa { grid-template-columns: 82px minmax(0, 1fr); }
  .ivfp-wingman-action { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr); align-items: center; }
  .ivfp-wingman-reward { grid-row: 1 / 3; }
  .ivfp-wingman-goal { grid-column: 2; }
  .ivfp-wingman-action > a { grid-column: 2; }
  .ivfp-wingman-approved { right: 24px; bottom: 60px; }
  .ivfp-podium { grid-template-columns: 1fr; }
  .ivfp-podium-passport { min-height: 126px; }
  .ivfp-ranking-columns { display: none; }
  .ivfp-page .ivfp-ranking-row { grid-template-columns: 30px 42px minmax(150px, 1fr) 120px 70px 16px; }
}

@media (max-width: 767px) {
  .ivfp-command .ivfp-heading { min-height: 0; align-items: flex-start; flex-direction: column; gap: 18px; padding: 30px 24px 24px; }
  .ivfp-command .fp-nav { padding: 0 12px 12px; }
  .ivfp-page .fp-nav-item { min-height: 58px; }
  .ivfp-page .fp-nav-copy small { display: none; }
  .ivfp-page .ivfp-cover-bar { align-items: stretch; }
  .ivfp-week-pager { justify-content: space-between; }
  .ivfp-page .ivfp-week-form { flex: none; width: auto; }
  .ivfp-page .ivfp-paper { padding: 24px 18px 30px 45px; }
  .ivfp-page .ivfp-paper::before { width: 28px; }
  .ivfp-page .ivfp-stamp-grid { grid-template-columns: 1fr; }
  .ivfp-page .passport-stamp { min-height: 215px; }
  .ivfp-page .stamp-name { max-width: calc(100% - 96px); }
  .ivfp-page .ivfp-ranking-head { align-items: stretch; }
  .ivfp-page .ivfp-search input { width: 100%; min-width: 0; }
  .ivfp-page .ivfp-ranking-row { grid-template-columns: 28px 40px minmax(0, 1fr) 62px 15px; grid-template-areas: "rank avatar pilot season open" "rank avatar week week open"; gap: 7px 9px; }
  .ivfp-page .ivfp-rank-number { grid-area: rank; }
  .ivfp-page .ivfp-rank-avatar { grid-area: avatar; }
  .ivfp-page .ivfp-rank-pilot { grid-area: pilot; }
  .ivfp-page .ivfp-rank-week { grid-area: week; }
  .ivfp-page .ivfp-rank-progress { grid-area: season; }
  .ivfp-page .ivfp-ranking-row > i { display: block; grid-area: open; }
  .ivfp-debrief-entry { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pilot time" "stamp stamp" "route actions"; gap: 10px 14px; }
  .ivfp-debrief-actions { justify-content: flex-end; }
}

@media (max-width: 520px) {
  .ivfp-page .ivfp-heading h1 { font-size: 31px; }
  .ivfp-page .ivfp-active-badge { align-self: flex-start; }
  .ivfp-page .ivfp-cover-identity > div > small { font-size: 10px; }
  .ivfp-page .ivfp-week-form { min-width: 145px; }
  .ivfp-page .ivfp-week-form label { padding-right: 10px; text-align: center; }
  .ivfp-page .ivfp-week-form label small { display: none; }
  .ivfp-page .ivfp-week-form label span { font-size: 16px; }
  .ivfp-page .ivfp-passport-id { align-items: flex-start; }
  .ivfp-page .ivfp-passport-photo { width: 65px; height: 76px; }
  .ivfp-page .ivfp-passport-id strong { font-size: 15px; }
  .ivfp-page .ivfp-progress-card { grid-template-columns: 1fr 72px; }
  .ivfp-progress-dial { width: 66px; height: 66px; }
  .ivfp-wingman-visa { grid-template-columns: 62px minmax(0, 1fr); padding: 15px; }
  .ivfp-wingman-seal { width: 58px; height: 58px; }
  .ivfp-wingman-copy h2 { font-size: 18px; }
  .ivfp-wingman-action { grid-template-columns: 1fr; }
  .ivfp-wingman-reward { grid-row: auto; }
  .ivfp-wingman-goal,
  .ivfp-wingman-action > a { grid-column: auto; }
  .ivfp-wingman-goal { align-items: flex-start; flex-direction: column; }
  .ivfp-wingman-goal > small { text-align: left; }
  .ivfp-wingman-tooltip { right: auto; left: -8px; width: min(290px, calc(100vw - 54px)); }
  .ivfp-wingman-tooltip::after { right: auto; left: 13px; }
  .ivfp-airports-modal .modal-footer { align-items: stretch; flex-direction: column; }
  .ivfp-airports-close-btn { width: 100%; }
  .ivfp-wingman-approved { display: none; }
  .ivfp-page .passport-title { font-size: 22px; }
  .ivfp-page .ivfp-stamp-heading { align-items: flex-start; }
  .ivfp-page .ivfp-stamp-count { flex: none; }
  .ivfp-debrief-entry { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ivfp-page .fp-nav-item,
  .ivfp-page .passport-stamp,
  .ivfp-podium-passport { transition: none; }
}
