/* WalkAtlas — Stage 4A / own Profile header, navigation and Overview.
   Mobile-first. Add these hooks to existing owner-profile markup; do not
   replace event hooks or use this as a global reset. All styles are scoped.
   Load after the existing Profile rules; resolve conflicting legacy rules
   within this scope only. No external fonts, icon libraries or assets. */
#panel #accountWalkSections[data-wa-profile-4a] {
  --p4-ink: #173c30;
  --p4-text: #263d35;
  --p4-muted: #52665c;
  --p4-green: #236b43;
  --p4-green-dark: #175333;
  --p4-soft: #edf5ed;
  --p4-paper: #fff;
  --p4-bg: #f5f7f3;
  --p4-line: #dce5dc;
  --p4-strong-line: #849b89;
  --p4-alert: #a51d35;
  --p4-amber: #805509;
  --p4-amber-bg: #fff5db;
  --p4-focus: #176f9f;
  --p4-radius: 14px;
  --p4-gap: 12px;
}
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) {
  color: var(--p4-text);
  font-family: inherit;
}
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities),
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) *,
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) *::before,
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) *::after {
  box-sizing: border-box;
}
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) [hidden],
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities)[hidden] {
  display: none !important; /* Honor existing conditional rendering. */
}
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) :is(button,a,input,select,summary):focus-visible {
  outline: 3px solid var(--p4-focus);
  outline-offset: 2px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-icon {
  inline-size: 19px;
  block-size: 19px;
  flex: 0 0 auto;
  color: inherit;
}

/* 1. Personal identity. Name and handle wrap rather than push out actions. */
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-header {
  background: var(--p4-paper);
  border: 1px solid var(--p4-line);
  border-radius: var(--p4-radius) var(--p4-radius) 0 0;
  padding: 14px 10px 12px;
  margin: 0;
  box-shadow: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-identity {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-avatar {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  padding: 0;
  border: 1px solid var(--p4-strong-line);
  border-radius: 50%;
  background: var(--p4-soft);
  color: var(--p4-green-dark);
  font: inherit;
  font-size: 20px;
  font-weight: 750;
  box-shadow: none;
  cursor: pointer;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-avatar img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border-radius: 50%;
  object-fit: cover;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-avatar-edit {
  position: absolute;
  inset-inline-end: -2px;
  inset-block-end: -2px;
  display: grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  border: 2px solid var(--p4-paper);
  border-radius: 50%;
  background: var(--p4-green);
  color: #fff;
  pointer-events: none; /* Decorative within the existing avatar button. */
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-avatar-edit .wa-p4-icon { inline-size: 11px; block-size: 11px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-identity-text { min-inline-size: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-eyebrow {
  margin: 0 0 3px;
  color: var(--p4-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-name {
  margin: 0;
  color: var(--p4-ink);
  font-size: 21px;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-handle {
  margin: 3px 0 0;
  color: var(--p4-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-identity-actions { display: flex; gap: 4px; align-items: center; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 8px;
  border: 1px solid var(--p4-strong-line);
  border-radius: 11px;
  background: var(--p4-paper);
  color: var(--p4-green-dark);
  font: inherit;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-privacy-row { display: flex; flex-wrap: wrap; gap: 5px; margin-block-start: 10px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-inline-size: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--p4-soft);
  color: var(--p4-green-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-chip .wa-p4-icon { inline-size: 14px; block-size: 14px; }

/* 2. Five equal navigation buttons, visible at phone widths.
   The badge has its own icon row; it must never cover the label or count.
   Preserve existing data-tab values, counts, click handlers and ARIA state. */
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-nav {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 3px;
  margin: 0;
  padding: 6px 5px;
  border: 1px solid var(--p4-line);
  border-block-start: 0;
  border-radius: 0 0 var(--p4-radius) var(--p4-radius);
  background: var(--p4-paper);
  box-shadow: none;
  min-inline-size: 0;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab {
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  align-items: center;
  gap: 4px;
  min-inline-size: 0;
  min-block-size: 74px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--p4-muted);
  text-align: center;
  font: inherit;
  box-shadow: none;
  cursor: pointer;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab-iconrow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  inline-size: 100%;
  min-block-size: 20px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab[data-has-badge="true"] .wa-p4-tab-iconrow {
  justify-content: flex-start;
  padding-inline-start: 3px;
  padding-inline-end: 19px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-count-badge {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  min-inline-size: 17px;
  min-block-size: 17px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--p4-alert);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab-value {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab:is([aria-selected="true"],[aria-current="page"],[data-active="true"]) {
  background: var(--p4-soft);
  border-color: var(--p4-strong-line);
  color: var(--p4-green-dark);
  box-shadow: inset 0 -3px 0 var(--p4-green);
}
/* Opt-in only after proving the actual owner panel scroll container and
   sheet states. Do not stick the identity header or alter map layout. */
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-nav[data-sticky="true"] {
  position: sticky;
  inset-block-start: var(--p4-sticky-offset,0px);
  z-index: 2;
  border-radius: 0 0 10px 10px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 8px 0;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-block-size: 44px;
  min-inline-size: 44px;
  max-inline-size: 100%;
  padding: 8px 12px;
  border: 1px solid var(--p4-strong-line);
  border-radius: 10px;
  background: var(--p4-paper);
  color: var(--p4-green-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
  cursor: pointer;
}

/* 3. Overview: restrained surfaces, strong hierarchy and readable numbers. */
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-overview {
  display: grid;
  gap: var(--p4-gap);
  min-inline-size: 0;
  margin: 10px 0 0;
  padding: 0 0 14px;
  background: transparent;
  line-height: 1.45;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-section {
  min-inline-size: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--p4-line);
  border-radius: var(--p4-radius);
  background: var(--p4-paper);
  box-shadow: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 11px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-section-title {
  margin: 0;
  color: var(--p4-ink);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-secondary-text {
  margin: 0;
  color: var(--p4-muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  inline-size: 100%;
  min-block-size: 52px;
  padding: 10px;
  border: 1px solid var(--p4-line);
  border-radius: 12px;
  background: var(--p4-paper);
  color: var(--p4-text);
  text-align: start;
  font: inherit;
  box-shadow: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice[data-attention="true"] {
  border-color: #dfc583;
  background: var(--p4-amber-bg);
  color: #62450a;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice-title { display: block; font-size: 14px; font-weight: 750; line-height: 1.3; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice-detail { display: block; margin-block-start: 3px; font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice-count {
  border-radius: 999px;
  background: var(--p4-alert);
  color: #fff;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-periods {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 4px;
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid var(--p4-line);
  border-radius: 12px;
  background: var(--p4-bg);
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-period {
  display: grid;
  place-items: center;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--p4-text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  box-shadow: none;
  cursor: pointer;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-period:is([aria-pressed="true"],[data-active="true"]) {
  background: var(--p4-green-dark);
  color: #fff;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stats {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 0;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat {
  display: grid;
  align-content: start;
  gap: 5px;
  min-inline-size: 0;
  min-block-size: 105px;
  padding: 11px;
  border: 1px solid var(--p4-line);
  border-radius: 12px;
  background: var(--p4-soft);
  color: var(--p4-green-dark);
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat .wa-p4-icon { inline-size: 21px; block-size: 21px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat-value {
  margin: 0;
  color: var(--p4-ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat-unit { font-size: .55em; font-weight: 700; letter-spacing: normal; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat-label { margin: 0; color: var(--p4-muted); font-size: 12px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-secondary-stats {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-secondary-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-inline-size: 0;
  min-block-size: 44px;
  padding: 8px 10px;
  border: 1px solid var(--p4-line);
  border-radius: 10px;
  background: var(--p4-bg);
  color: var(--p4-muted);
  font-size: .78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-secondary-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-secondary-stat > span { min-inline-size: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-secondary-stat > strong {
  flex: 0 1 auto;
  min-inline-size: 0;
  max-inline-size: 52%;
  color: var(--p4-ink);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-empty {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--p4-bg);
  color: var(--p4-muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 4. Highlights, activity, achievements, challenges and Social shortcuts. */
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlights {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 0;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlight-counties { grid-column: 1 / -1; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlight-counties .wa-p4-progress { margin: 3px 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlight {
  min-inline-size: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: var(--p4-bg);
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlight-name { margin: 0; color: var(--p4-ink); font-size: 14px; font-weight: 750; line-height: 1.35; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
  inline-size: 100%;
  min-block-size: 52px;
  padding: 10px 0;
  border: 0;
  border-block-end: 1px solid var(--p4-line);
  border-radius: 0;
  background: transparent;
  color: var(--p4-text);
  text-align: start;
  font: inherit;
  text-decoration: none;
  box-shadow: none;
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-list > :last-child { border-block-end: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-list > :last-child > .wa-p4-row { border-block-end: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-row-icon {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border-radius: 11px;
  background: var(--p4-soft);
  color: var(--p4-green-dark);
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-row-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-row-meta { display: block; margin-block-start: 3px; color: var(--p4-muted); font-size: 12px; line-height: 1.4; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-rewards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr));
  gap: 8px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward {
  display: grid;
  align-content: start;
  gap: 8px;
  min-inline-size: 0;
  padding: 11px;
  border: 1px solid var(--p4-line);
  border-radius: 12px;
  background: var(--p4-paper);
  overflow-wrap: anywhere;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward[data-unlocked="true"] { background: var(--p4-soft); border-color: #a9c5ad; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward-icon {
  display: grid;
  place-items: center;
  inline-size: 36px;
  block-size: 36px;
  border: 1px solid var(--p4-line);
  border-radius: 50%;
  background: var(--p4-bg);
  color: var(--p4-muted);
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward[data-unlocked="true"] .wa-p4-reward-icon { color: var(--p4-green-dark); background: #dcebdd; border-color: #a9c5ad; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward-title { margin: 0; font-size: 14px; font-weight: 750; color: var(--p4-ink); line-height: 1.35; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward-status { font-size: 12px; font-weight: 700; color: var(--p4-green-dark); }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-progress {
  display: block;
  appearance: none;
  inline-size: 100%;
  block-size: 7px;
  border: 0;
  border-radius: 999px;
  background: #dce5dc;
  color: var(--p4-green);
  overflow: hidden;
}
#panel #accountWalkSections[data-wa-profile-4a] progress.wa-p4-progress::-webkit-progress-bar { background: #dce5dc; border-radius: 999px; }
#panel #accountWalkSections[data-wa-profile-4a] progress.wa-p4-progress::-webkit-progress-value { background: var(--p4-green); border-radius: 999px; }
#panel #accountWalkSections[data-wa-profile-4a] progress.wa-p4-progress::-moz-progress-bar { background: var(--p4-green); border-radius: 999px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-social {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-social-link {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-inline-size: 0;
  min-block-size: 84px;
  padding: 8px;
  border: 1px solid var(--p4-line);
  border-radius: 10px;
  background: var(--p4-bg);
  color: var(--p4-green-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-social-link > .wa-p4-icon { margin: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-social-link > strong { font-size: 19px; font-variant-numeric: tabular-nums; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-social-link > span { color: var(--p4-muted); font: inherit; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-social-link:active { background: var(--p4-soft); }
#panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) button:disabled {
  cursor: not-allowed;
  opacity: .65;
}
@media (hover: hover) and (pointer: fine) {
  #panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-icon-button,.wa-p4-action,.wa-p4-tab,.wa-p4-social-link):hover:not(:disabled) {
    border-color: var(--p4-green);
  }
  #panel #accountWalkSections[data-wa-profile-4a] :is(button,a).wa-p4-row:hover { background: var(--p4-bg); }
}
/* Width follows actual panel, not the desktop viewport. Only establish a
   container on a measured, already width-constrained inner wrapper. */
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-width-context { container: wa-profile-4a / inline-size; min-inline-size: 0; }
@container wa-profile-4a (min-width: 430px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-header { padding: 16px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-avatar { inline-size: 64px; block-size: 64px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-name { font-size: 24px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-identity { gap: 12px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-nav { padding: 7px 8px; gap: 5px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab { min-block-size: 70px; padding: 6px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab[data-has-badge="true"] .wa-p4-tab-iconrow { justify-content: center; padding-inline: 0; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-section { padding: 16px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat { padding: 13px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat-value { font-size: 29px; }
}
/* Compact achievement/challenge rows on narrow panels. Existing reward
   content remains in DOM order; only its layout changes. */
@container wa-profile-4a (max-width: 390px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-rewards { grid-template-columns: minmax(0,1fr); }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward {
    grid-template-columns: 36px minmax(0,1fr);
    gap: 5px 10px;
  }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward > :not(.wa-p4-reward-icon) { grid-column: 2; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward > .wa-p4-reward-icon { grid-column: 1; grid-row: 1 / span 4; }
}
@container wa-profile-4a (max-width: 340px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-nav { padding-inline: 3px; gap: 2px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab { padding-inline: 0; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab-label { font-size: 11px; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab-iconrow .wa-p4-icon { inline-size: 16px; block-size: 16px; }
}
@container wa-profile-4a (max-width: 290px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-identity { grid-template-columns: auto minmax(0,1fr); }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-identity-actions { grid-column: 1 / -1; justify-content: flex-end; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-section { padding: 10px; }
}
/* Emergency reflow for very narrow embedded panels or browser zoom. */
@container wa-profile-4a (max-width: 255px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-periods { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stats { grid-template-columns: minmax(0,1fr); }
  #panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-secondary-stats,.wa-p4-highlights,.wa-p4-social) { grid-template-columns: minmax(0,1fr); }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-nav[data-sticky="true"] { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  #panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities),
  #panel #accountWalkSections[data-wa-profile-4a] :is(.wa-p4-header,.wa-p4-nav,.wa-p4-overview,.wa-p4-utilities) * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Preserve the legacy layout hooks while replacing their presentation only
   within the two already width-constrained owner regions. */
#panel #accountWalkSections[data-wa-profile-4a] .profileSummaryCard {
  margin: 10px 12px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-avatar {
  min-block-size: 0;
  overflow: visible;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-avatar img { min-inline-size: 0; min-block-size: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-eyebrow { background: transparent; padding: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-icon-button svg { inline-size: 19px; block-size: 19px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-nav {
  position: static;
  overflow: visible;
  scroll-snap-type: none;
  backdrop-filter: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab { scroll-snap-align: none; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab > span { min-block-size: 0; height: auto; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab > .wa-p4-tab-iconrow { min-block-size: 20px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab > .wa-p4-tab-label { font-size: 12px; line-height: 1.25; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab > .wa-p4-tab-value { min-block-size: 1.2em; font-size: 12px; line-height: 1.2; }
@container wa-profile-4a (max-width: 340px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-tab > .wa-p4-tab-label { font-size: 11px; }
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-count-badge {
  inset-inline: auto 0;
  inset-block: 0 auto;
  max-inline-size: none;
  font-style: normal;
  box-shadow: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-count-badge > span:not(.srOnly) {
  inline-size: auto;
  min-block-size: 0;
  font-size: 10px;
  line-height: 1.15;
  color: inherit;
}
#panel #accountWalkSections[data-wa-profile-4a] .profileOverviewDashboard.wa-p4-width-context {
  overflow: visible;
  padding: 0 12px;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-periods { overflow: visible; scroll-snap-type: none; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-period {
  white-space: normal;
  scroll-snap-align: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat-unit { color: inherit; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-stat > svg { justify-self: start; margin: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice {
  margin: 0;
  cursor: pointer;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice :is(.wa-p4-notice-title,.wa-p4-notice-detail) { color: inherit; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-notice-count {
  min-inline-size: 0;
  block-size: auto;
  box-shadow: none;
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-plan-row { padding-block: 7px; row-gap: 5px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-plan-details .wa-p4-row-meta { margin-block-start: 2px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-plan-empty { padding-block: 9px; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-plan-row .wa-p4-action {
  grid-column: 2;
  justify-self: start;
  padding: 6px 9px;
}
@container wa-profile-4a (min-width: 360px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-plan-row { grid-template-columns: auto minmax(0,1fr) auto; }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-plan-row .wa-p4-action { grid-column: 3; }
}
@container wa-profile-4a (min-width: 480px) {
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlights { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlight-counties { grid-column: auto; }
}
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-highlight { border: 0; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward-icon { font-size: inherit; }
#panel #accountWalkSections[data-wa-profile-4a] .wa-p4-reward:not([data-unlocked="true"]) .wa-p4-reward-status { color: var(--p4-muted); }
@media (max-width: 600px) {
  #panel #accountWalkSections[data-wa-profile-4a] .profileSummaryCard { margin: 6px 6px 0; }
  #panel #accountWalkSections[data-wa-profile-4a] .profileOverviewDashboard.wa-p4-width-context { padding-inline: 6px; }
}
