/* ===========================================================================
   Your profile = MPMA Pathways' profile workspace, in EMS US (settings.js
   profile pages). Tyler 11-15: "all the profiles that show up inside of the
   settings need to be the same exact way that we had in Pathways, with the
   same exact designs."

   Ported from mpma-pathways origin/main efa8e39 assets/css/settings.css
   (Profiles: bp-role* cards, rp-* workspace, rp-an answer rows, myp-add doors,
   myp-mini) with Pathways' --mp-* colours swapped for EMS tokens. Each profile
   wears its colour: --rv (accent), --rv-ink (readable), --rv-soft (wash).
   =========================================================================== */
.rp--member, .bp-role--member, .set-link--page.is-member { --rv: #4F5FC7; --rv-ink: #2A3890; --rv-soft: #eef0fb; }
.rp--spouse, .bp-role--spouse, .set-link--page.is-spouse { --rv: #38A3D6; --rv-ink: #0369A1; --rv-soft: #e8f4fb; }
.rp--family, .bp-role--family, .set-link--page.is-family { --rv: #2BB3A3; --rv-ink: #0F766E; --rv-soft: #e7f6f3; }
.rp--mentor, .bp-role--mentor, .set-link--page.is-mentor { --rv: #E0559A; --rv-ink: #BE185D; --rv-soft: #fdeef5; }

/* Lines that open their own page (each profile): one tray in the rail. */
.set-rail-pages { display: grid; gap: 4px; margin: 4px 0; padding: 4px; border-radius: 12px; background: #f3f5fa; }
.set-link--page { background: #fff; box-shadow: 0 1px 2px rgba(14, 21, 71, .06); }
.set-link--page:hover { background: #fff; box-shadow: 0 2px 8px rgba(14, 21, 71, .10); }
.set-link--page.active { background: #fff; box-shadow: inset 0 0 0 1.5px var(--rv-ink, var(--ems-navy-500)); color: var(--rv-ink, var(--ems-navy-500)); }
.set-link--page.active::before { display: none; }
.set-link--page .set-page-go { margin-left: auto; display: inline-grid; opacity: .4; transition: transform .15s, opacity .15s; }
.set-link--page .set-link-pct + .set-page-go { margin-left: 0; }
.set-link--page:hover .set-page-go { opacity: .9; transform: translateX(2px); }
.set-subback { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font: 600 14px/1.3 var(--ems-font-ui); color: var(--ems-navy-500); text-decoration: none; }
.set-subback:hover { text-decoration: underline; }

.myp-page { display: flex; flex-direction: column; gap: 18px; --myp-ink: var(--set-ink, #0f172a); --myp-mute: var(--set-mute, #64748b); --myp-line: #e6eaf1; }
.myp-page > * { animation: rp-rise .42s cubic-bezier(.22, 1, .36, 1) backwards; }
.myp-page > :nth-child(2) { animation-delay: 60ms; }
.myp-page > :nth-child(3) { animation-delay: 120ms; }
.myp-ic-sm { display: inline-grid; place-items: center; flex: none; }
.myp-ic-sm svg { width: 14px; height: 14px; display: block; }
.myp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.myp-chip { padding: 3px 11px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px #d6dcec; color: #334155; font: 650 13px/1.5 var(--ems-font-ui); }
.myp-group { display: flex; flex-direction: column; gap: 7px; }
.myp-group-k { display: flex; align-items: center; gap: 6px; font: 700 12px/1.4 var(--ems-font-ui); color: #8790a6; text-transform: uppercase; letter-spacing: .05em; }
.myp-group-k .myp-ic-sm { color: var(--rv-ink); }
/* the roles: compact cards, each wearing its rail colour */
.bp-roles { padding: 4px 2px 0; }
.bp-roles-h h3 { margin: 0; font-family: var(--ems-font-display); font-size: 18px; font-weight: 800; color: #0f172a; }
.bp-roles-h p { margin: 4px 0 14px; font-size: 13.5px; color: #64748b; max-width: 72ch; }
.bp-roles-h p b { color: #334155; }
.bp-role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bp-role {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid #e6eaf1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease, border-color .18s ease;
  animation: rp-rise .5s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 50ms);
}
.bp-role::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--rv); }
.bp-role:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--rv) 45%, #e6eaf1); box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35); }
.bp-role.is-here { background: linear-gradient(180deg, var(--rv-soft), #fff 70%); }
.bp-role-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; padding: 16px 16px 12px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.bp-role-main:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--rv); border-radius: 16px; }
.bp-role-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--rv-soft); color: var(--rv-ink); }
.bp-role-t b { display: block; font-size: 15px; color: #0f172a; }
.bp-role-t small { display: block; margin-top: 2px; font-size: 12.5px; color: #64748b; line-height: 1.35; }
.bp-role-meter { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: #eef1f5; overflow: hidden; }
.bp-role-meter i { display: block; height: 100%; border-radius: inherit; background: var(--rv); animation: rp-grow .9s cubic-bezier(.22, 1, .36, 1) backwards; }
.bp-role-st { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: #8a5300; }
.bp-role-st.is-active { color: #1e7a45; }
.bp-role-st.is-new { color: #64748b; }
.bp-role-st svg { width: 13px; height: 13px; stroke-width: 3; }
.bp-role-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 10px 16px; border-top: 1px solid #f0f3f7; }
.bp-role-go { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--rv-ink); cursor: pointer; }
.bp-role-go svg { width: 14px; height: 14px; transition: transform .18s ease; }
.bp-role-go:hover svg { transform: translateX(3px); }
.bp-role-here { font-size: 12.5px; font-weight: 700; color: var(--rv-ink); }
.bp-role-prev { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
.bp-roles-foot { margin: 14px 0 0; }
.bp-roles-foot a { font-weight: 600; color: var(--ems-navy-500); text-decoration: none; }

/* -- a role profile: the band ---------------------------------------------- */
.rp { gap: 16px; }
.rp-band {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--rv) 30%, #e6eaf1);
}
.rp-band::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rv); }
.rp-band-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--rv-ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--rv) 80%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--rv) 30%, #fff); }
.rp-band-t { min-width: 0; }
.rp-eyebrow { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--rv-ink); }
.rp-eyebrow svg { width: 12px; height: 12px; stroke-width: 3; }
.rp-band-t h2 { margin: 2px 0; font-family: var(--ems-font-display); font-size: 26px; font-weight: 800; letter-spacing: -.015em; color: #0f172a; }
.rp-band-t p { margin: 0; font-size: 14px; color: #475569; }
.rp-meter { display: flex; flex-direction: column; gap: 6px; }
.rp-meter-n { font-size: 13px; font-weight: 700; color: #64748b; text-align: right; }
.rp-meter-n b { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.rp-meter-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--rv) 18%, #eef1f5); overflow: hidden; }
.rp-meter-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--rv-ink); animation: rp-grow 1s cubic-bezier(.22, 1, .36, 1) backwards; }
.rp-seen {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; margin-left: auto;
  background: #fff; border: 1px solid color-mix(in srgb, var(--rv) 35%, #e6eaf1); font-size: 13.5px; font-weight: 700; color: var(--rv-ink); text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.rp-seen svg { width: 15px; height: 15px; }
.rp-seen svg:last-child { transition: transform .18s ease; }
.rp-seen:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(15, 23, 42, .4); }
.rp-seen:hover svg:last-child { transform: translateX(3px); }

/* the ONE next step: part of the header, in the role colour (Tyler, 6 Oct:
   the dark bar "feels like yet another section") */
.rp-next { display: flex; align-items: center; gap: 10px 16px; margin-left: auto; min-width: 0; }
.rp-steps { display: inline-flex; gap: 4px; justify-content: flex-end; }
.rp-steps i { width: 18px; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--rv) 20%, #e8edf3); }
.rp-steps i.is-done { background: var(--rv); }
.rp-next-t { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.rp-next-t span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.rp-next-t b { font-size: 15px; color: #0f172a; }
.rp-next-go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 12px; background: var(--rv-ink); color: #fff; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--rv-ink) 90%, #000); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.rp-next-go svg { width: 16px; height: 16px; transition: transform .18s ease; }
.rp-next-go:hover, .rp-next-go:focus-visible { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--rv-ink) 90%, #000); outline: none; }
.rp-next-go:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rv) 45%, transparent); }
.rp-next-go:hover svg { transform: translateX(3px); }

/* -- the profile WORKSPACE: its own canvas, boundary and navigation ---------
   Tyler, 6 Oct: Settings stays white/neutral; inside a profile the canvas is a
   faint wash of the role colour (seeker teal, employer gold, coach purple,
   admin slate), held in a container with a real edge, so it never bleeds into
   the Settings navigation and you always know which profile you are editing. */
.myp-page.rp {
  position: relative; min-width: 0; padding: 18px; border-radius: 26px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rv-soft) 85%, #fff) 0%, color-mix(in srgb, var(--rv-soft) 55%, #fff) 100%);
  border: 1px solid color-mix(in srgb, var(--rv) 26%, #e6eaf1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 30px 60px -48px color-mix(in srgb, var(--rv) 70%, #000);
}
.myp-page.rp > .rp-subnav { animation: none; }
/* the header */
.rp-head { display: flex; flex-direction: column; background: #fff; }
.rp-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 200% at 100% 0%, color-mix(in srgb, var(--rv) 20%, transparent), transparent 60%), linear-gradient(135deg, var(--rv-soft) 0%, #fff 70%); pointer-events: none; }
.rp-head > * { position: relative; }
.rp-head-top { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, 230px); align-items: center; gap: 16px 20px; padding: 22px 26px 18px; }
.rp-head .rp-meter .rp-steps { margin-top: 2px; }
.rp-head-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 12px 26px 14px; border-top: 1px solid color-mix(in srgb, var(--rv) 18%, #eef1f6); background: rgba(255, 255, 255, .72); }
/* the compact profile switcher */
.rp-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: #f1f4f8; }
.rp-sw { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #475569; text-decoration: none; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.rp-sw svg { width: 15px; height: 15px; flex: none; color: var(--sw); }
.rp-sw small { font-size: 11px; font-weight: 700; color: #94a3b8; }
.rp-sw-ok { display: inline-grid; color: #2f9e5f; }
.rp-sw-ok svg { width: 12px; height: 12px; stroke-width: 3; color: inherit; }
.rp-sw:hover { background: #fff; color: #0f172a; }
.rp-sw[aria-current] { background: #fff; color: var(--rv-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), inset 0 0 0 1px color-mix(in srgb, var(--rv) 40%, #fff); }
.rp-sw[aria-current] small { color: var(--rv-ink); }
.rp-sw:focus-visible { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--rv) 55%, transparent); }
.rp-sw--member { --sw: #4F5FC7; }
.rp-sw--spouse { --sw: #38A3D6; }
.rp-sw--family { --sw: #2BB3A3; }

.rp-sw--mentor { --sw: #E0559A; }

/* the profile's own sub-navigation, pinned while you read it */
.rp-subnav {
  position: sticky; top: calc(var(--rp-stick, 0px) + 8px); z-index: 4; display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; contain: inline-size;
  padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .9); border: 1px solid color-mix(in srgb, var(--rv) 20%, #e6eaf1);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 8px 20px -16px rgba(15, 23, 42, .45);
}
.rp-subnav::-webkit-scrollbar { display: none; }
.rp-subnav:empty { display: none; }
.rp-subnav a { position: relative; flex: none; padding: 7px 13px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #64748b; text-decoration: none; white-space: nowrap; transition: background .16s ease, color .16s ease; }
.rp-subnav a:hover { color: #0f172a; background: color-mix(in srgb, var(--rv-soft) 70%, #fff); }
.rp-subnav a.is-on { color: var(--rv-ink); background: var(--rv-soft); }
.rp-subnav a.is-on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--rv); }
.rp-subnav a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rv) 55%, transparent); }
/* the role colour, carried through every section */
.rp .rp-sec:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rv) 45%, transparent); }
.rp .rp-sec.is-main[role="button"]:hover { border-color: color-mix(in srgb, var(--rv) 45%, #e6eaf1); }
.rp .rp-sec.is-side[role="button"]:hover { background: color-mix(in srgb, var(--rv-soft) 45%, #fff); }
.rp .rp-row:hover { background: color-mix(in srgb, var(--rv-soft) 70%, #fff); }
.rp .rp-side { border-color: color-mix(in srgb, var(--rv) 20%, #e6eaf1); }
.rp .rp-sec.is-side::before { content: ""; position: absolute; left: 0; top: 18px; width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--rv); opacity: .8; }
.rp .rp-edit { color: var(--rv-ink); background: var(--rv-soft); }
.rp .rp-st.is-rec, .rp .rp-empty svg { color: var(--rv-ink); }
.rp .myp-add { color: var(--rv-ink); border-color: color-mix(in srgb, var(--rv) 38%, #dfe6ee); }
.rp .myp-add:hover, .rp .myp-add:focus-visible { border-color: var(--rv); background: var(--rv-soft); color: var(--rv-ink); }

/* -- the 2/3 + 1/3 workspace ------------------------------------------------ */
.rp-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.rp-layout.is-single { grid-template-columns: minmax(0, 1fr); }
.rp-main, .rp-side { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rp-side { gap: 0; background: #fff; border: 1px solid #e6eaf1; border-radius: 18px; overflow: hidden; }

.rp-sec { position: relative; min-width: 0; animation: rp-rise .45s cubic-bezier(.22, 1, .36, 1) backwards; }
.rp-sec[role="button"] { cursor: pointer; }
.rp-sec:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42, 56, 144, .3); }
.rp-sec-h { display: flex; align-items: center; gap: 10px; }
.rp-sec-h h3 { margin: 0; color: #0f172a; }
.rp-sec-ic { display: grid; place-items: center; flex: none; }
.rp-sec-ic svg { width: 17px; height: 17px; }
.rp-sec-note { margin: 0 0 12px; font-size: 13px; color: #64748b; line-height: 1.45; }
.rp-sec-body { display: flex; flex-direction: column; gap: 14px; }
.rp-edit {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--ems-navy-500);
  background: #eef5fb; opacity: 0; transform: translateX(-4px); transition: opacity .16s ease, transform .16s ease;
}
.rp-edit svg { width: 13px; height: 13px; }
.rp-sec[role="button"]:hover > .rp-sec-h .rp-edit, .rp-sec:focus-visible > .rp-sec-h .rp-edit { opacity: 1; transform: none; }
/* completion: a quiet mark, not a pill */
.rp-st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rp-st svg { width: 15px; height: 15px; stroke-width: 3; }
.rp-st.is-done { color: #2f9e5f; }
.rp-st.is-todo { color: #8a5300; }
.rp-st.is-todo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F2A93B; }
.rp-st.is-opt, .rp-st.is-locked { color: #94a3b8; font-weight: 600; }
.rp-st.is-rec { color: #0b5a93; }

/* the feature: what a reader sees first, given room */
.rp-sec.is-feature {
  padding: 24px 26px; border-radius: 20px; background: #fff; border: 1px solid #e6eaf1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 44px -34px color-mix(in srgb, var(--rv) 90%, #000);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.rp-sec.is-feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 84px; border-radius: 20px 20px 0 0; background: linear-gradient(180deg, var(--rv-soft), transparent); pointer-events: none; }
.rp-sec.is-feature > * { position: relative; }
.rp-sec.is-feature .rp-sec-h { margin-bottom: 14px; }
.rp-sec.is-feature .rp-sec-h h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rv-ink); }
.rp-sec.is-feature .rp-sec-ic { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--rv-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rv) 35%, #fff); }
.rp-sec.is-feature:hover { border-color: color-mix(in srgb, var(--rv) 40%, #e6eaf1); }
.rp-lead { margin: 0; font-family: var(--ems-font-display); font-size: 24px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; color: #0f172a; }
.rp-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-fact { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #f6f8fb; font-size: 13.5px; }
.rp-fact .myp-ic-sm { align-self: center; color: var(--rv-ink); }
.rp-fact b { color: #0f172a; font-weight: 700; }
.rp-fact small { color: #8492a6; font-size: 12px; font-weight: 600; }
.rp-story small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8492a6; margin-bottom: 4px; }
.rp-story p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #334155; white-space: pre-line; }
.rp-story.is-first p { padding-left: 16px; border-left: 3px solid var(--rv); font-size: 16px; color: #1e293b; }

/* a main section: open card, round icon, lifts on hover */
.rp-sec.is-main { padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid #e6eaf1; transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease, border-color .18s ease; }
.rp-sec.is-main .rp-sec-h { margin-bottom: 14px; }
.rp-sec.is-main .rp-sec-h h3 { font-size: 17px; font-weight: 800; }
.rp-sec.is-main .rp-sec-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--rv-soft); color: var(--rv-ink); }
.rp-sec.is-main[role="button"]:hover { transform: translateY(-2px); border-color: #cfdbe7; box-shadow: 0 16px 32px -22px rgba(15, 23, 42, .45); }
.rp-sec.is-main .myp-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* the side column: small facts in small rows */
.rp-sec.is-side { padding: 16px 18px; transition: background .16s ease; }
.rp-sec.is-side + .rp-sec.is-side { border-top: 1px solid #eef1f6; }
.rp-sec.is-side .rp-sec-h { margin-bottom: 10px; flex-wrap: wrap; gap: 4px 10px; }
.rp-sec.is-side .rp-sec-h h3 { font-size: 12px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; text-transform: uppercase; color: #64748b; }
.rp-sec.is-side[role="button"]:hover { background: #fafcfe; }
.rp-sec.is-side .rp-edit { padding: 2px 8px; }
.rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-bottom: 4px; }
.rp-stat { padding: 10px 12px; border-radius: 12px; background: var(--rv-soft); }
.rp-stat b { display: block; font-size: 15px; font-weight: 800; color: var(--rv-ink); line-height: 1.25; overflow-wrap: anywhere; }
.rp-stat small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: #64748b; }
.rp-rows { display: flex; flex-direction: column; }
.rp-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; margin: 0 -6px; border-radius: 10px; transition: background .14s ease; }
.rp-row + .rp-row { border-top: 1px dashed #edf1f5; }
.rp-row:hover { background: #f1f7fc; }
.rp-row-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #f3f6f9; color: var(--rv-ink); }
.rp-row-ic svg { width: 14px; height: 14px; }
.rp-row-b { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rp-row-b small { font-size: 11.5px; font-weight: 600; color: #8492a6; }
.rp-row-v { font-size: 14px; font-weight: 650; color: #0f172a; overflow-wrap: anywhere; }
.rp-row-v.is-long { font-weight: 400; color: #334155; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rp-row-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-row-chips span { padding: 1px 8px; border-radius: 99px; background: #f1f4f8; color: #334155; font-size: 12.5px; font-weight: 600; }
.rp-empty { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 13px; color: #64748b; line-height: 1.45; }
.rp-empty svg { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--ems-navy-500); }
.rp-sec.is-side .myp-add { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.rp-sec.is-side .myp-tile { background: transparent; border: 0; padding: 0; }
.rp-minis { display: flex; flex-direction: column; gap: 6px; }
.rp-minis .myp-mini { width: 100%; }
@keyframes rp-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes rp-grow { from { width: 0; } }
@media (max-width: 1100px) {
  .rp-layout { grid-template-columns: minmax(0, 1fr); }
}
/* --- Settings shows each profile; the profile is its own page (Tyler, 6 Oct) --
   A role card is the profile at a glance: %, the one thing up next, and each of
   its sections with done / to add. Clicking it opens #settings/<role>-profile. */
.bp-role-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
a.bp-role-main { grid-template-columns: 40px minmax(0, 1fr) auto; text-decoration: none; flex: 1; align-content: start; }
.bp-role-pct { align-self: start; font-size: 12px; font-weight: 700; color: #94a3b8; white-space: nowrap; }
.bp-role-pct b { font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.bp-role-st:not(.is-active) { display: block; line-height: 1.4; }
.bp-role-st span { margin-right: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
/* The sections, quietly (Tyler, 6 Oct: "messy with all the marks"): a small
   tick or an empty ring, and only the next one speaks. */
.bp-role-opts { grid-column: 1 / -1; list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.bp-role-opts li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 9px; font-size: 13px; color: #475569; }
.bp-role-opts li > i { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #d5dde7; color: #fff; }
.bp-role-opts li > i svg { width: 9px; height: 9px; stroke-width: 3.4; }
.bp-role-opts li.is-done > i { border-color: transparent; background: color-mix(in srgb, var(--rv) 85%, #fff); }
.bp-role-opts li > span:not(.sr-only) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-role-opts li.is-done > span { color: #94a3b8; }
.bp-role-opts li.is-next { color: #0f172a; font-weight: 650; }
.bp-role-opts li.is-next > i { border-color: var(--rv); }
.bp-role-opts li > small { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rv-ink); }
.bp-role .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bp-role-open { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--rv-ink); }
.bp-role-open svg { width: 14px; height: 14px; transition: transform .18s ease; }
.bp-role:hover .bp-role-open svg { transform: translateX(3px); }
.bp-role-go { color: #64748b; font-weight: 600; }
/* -- Seeker answers read back as sentences; every line is a door (7 Oct) ----- */
.rp-ans { margin: 0; display: flex; flex-direction: column; }
.rp-an {
  display: grid; grid-template-columns: 30px minmax(130px, 210px) minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 10px; margin: 0 -10px; border-radius: 12px; cursor: pointer; transition: background .14s ease;
}
.rp-an + .rp-an { border-top: 1px solid #f0f3f7; }
.rp-an-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #f4f7fa; color: var(--rv-ink, #0b5a93); }
.rp-an-ic svg { width: 15px; height: 15px; }
.rp-an dt { margin: 0; font-size: 13px; font-weight: 650; color: #64748b; }
.rp-an dd { margin: 0; min-width: 0; font-size: 14.5px; color: #0f172a; }
.rp-an dd b { font-weight: 700; overflow-wrap: anywhere; }
.rp-an dd b.is-unsure { color: #8492a6; font-style: italic; font-weight: 600; }
.rp-an-ch { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--rv-ink, #0b5a93); background: var(--rv-soft, #eef5fb); opacity: 0; transition: opacity .14s ease; }
.rp-an-ch svg { width: 12px; height: 12px; }
.rp-an:hover, .rp-an:focus-visible { background: color-mix(in srgb, var(--rv-soft, #eef5fb) 65%, #fff); outline: none; }
.rp-an:hover .rp-an-ch, .rp-an:focus-visible .rp-an-ch { opacity: 1; }
.rp-an:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rv, #0074B8) 50%, transparent); }
@media (hover: none) { .rp-an-ch { opacity: 1; background: transparent; padding: 4px 0; } }
@media (max-width: 640px) {
  .rp-an { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .rp-an dt { grid-column: 2; }
  .rp-an dd { grid-column: 2 / 4; grid-row: 2; }
  .rp-an-ch { grid-column: 3; grid-row: 1; }
  .rp-an-ic { grid-row: 1 / 3; align-self: start; }
}
.rp-sec-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef1f6; }
.rp-cta {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--rv, #0074B8) 35%, #dfe6ee);
  background: #fff; color: var(--rv-ink, #0b5a93); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .14s ease, border-color .14s ease;
}
.rp-cta svg { width: 14px; height: 14px; }
.rp-cta:hover, .rp-cta:focus-visible { background: var(--rv-soft, #eef5fb); border-color: var(--rv, #0074B8); outline: none; }
/* the empty answer: a door to that exact field */
.myp-add {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; min-height: 44px; padding: 8px 14px; box-sizing: border-box;
  border: 1.5px dashed #c8cfe3; border-radius: 12px; background: transparent;
  font: 650 13.5px/1.3 var(--ems-font-ui); color: #4d5a80; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.myp-add svg { width: 15px; height: 15px; flex: none; }
.myp-adds { display: flex; flex-wrap: wrap; gap: 8px; }
/* More about you: small doors with icons */
.myp-mini {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; border: 1px solid var(--myp-line); border-radius: 12px; background: #fff;
  font: inherit; text-align: left; color: inherit; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.myp-mini-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--rv-soft, #f1f4f8); color: var(--rv-ink, #475569); overflow: hidden; }
.myp-mini-ic img { width: 100%; height: 100%; object-fit: cover; }
.myp-mini-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.myp-mini-b b { font: 700 14px/1.35 var(--ems-font-ui); color: var(--myp-ink); }
.myp-mini-b > span { font-size: 12.5px; color: var(--myp-mute); line-height: 1.4; overflow-wrap: anywhere; }
.myp-mini.is-empty .myp-mini-b > span { color: var(--rv-ink); font-weight: 650; }
.myp-mini:hover { border-color: color-mix(in srgb, var(--rv) 40%, #e6eaf1); box-shadow: 0 6px 16px rgba(14, 21, 71, .07); transform: translateY(-1px); }
.myp-mini:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rv) 40%, transparent); }

/* EMS additions ------------------------------------------------------------ */
.rp-an-long { display: block; font-weight: 400; line-height: 1.55; color: #334155; white-space: pre-line; }
.rp-sec-h .fr-slot { margin-left: 6px; }
.rp-sec-h .set-info { margin-left: 2px; }
.rp-sec.is-side .rp-sec-h .fr-slot { margin-left: 0; }
/* the résumé shelf sits in a main card: its own heading is the card's */
.rp-sec--resume .rz-shelf { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.rp-sec--resume .rz-h h3 { display: none; }
.rp-flash { animation: rp-flash 1.2s ease; }
@keyframes rp-flash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--rv) 45%, transparent); } }
.bp-roles { margin-top: 22px; }
a.rp-stat { text-decoration: none; transition: filter .15s ease; }
a.rp-stat:hover { filter: brightness(.97); }
/* styles.css dresses every <nav> (the old sidebar); the profile's tabs are not one */
nav.rp-subnav, nav.rp-switch { flex-direction: row; align-items: center; flex: none; }
nav.rp-subnav { gap: 2px; flex-wrap: nowrap; }
.set-link--page .set-link-pct { flex: none; white-space: nowrap; }
nav.rp-subnav a { display: inline-block; opacity: 1; line-height: 1.3; }
nav.rp-switch a { opacity: 1; }
@media (max-width: 760px) {
  .myp-page.rp { padding: 10px; border-radius: 20px; }
  .rp-head-top { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px 14px; }
  .rp-head-top .rp-meter { grid-column: 1 / -1; }
  .rp-head-foot { padding: 12px 16px; }
  .rp-next { width: 100%; justify-content: space-between; margin-left: 0; }
  .rp-next-t { align-items: flex-start; text-align: left; }
  .rp-steps { justify-content: flex-start; }
  .rp-switch { width: 100%; }
  .rp-subnav { position: static; }
  .rp-sec-h { flex-wrap: wrap; }
  .rp-meter-n { text-align: left; }
  .rp-sec.is-feature, .rp-sec.is-main { padding: 16px; }
  .rp-edit { opacity: 1; transform: none; }
  .rp-lead { font-size: 20px; }
}
@media (max-width: 640px) {
  .rp-an { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .rp-an dt { grid-column: 2; }
  .rp-an dd { grid-column: 2 / 4; grid-row: 2; }
  .rp-an-ch { grid-column: 3; grid-row: 1; }
  .rp-an-ic { grid-row: 1 / 3; align-self: start; }
}
@media (hover: none) { .rp-an-ch { opacity: 1; background: transparent; padding: 4px 0; } }
@media (prefers-reduced-motion: reduce) { .bp-role, .rp-sec, .bp-role-meter i, .rp-meter-bar i, .myp-page > * { animation: none; } .bp-role, .rp-sec.is-main, .rp-seen, .rp-next-go { transition: none; } }
/* --- One profile = one full-width card (Tyler, 15 Nov) -------------------------
   Most people have exactly one profile, so a lone card in a 250px grid cell left
   the page two-thirds empty. It runs the width of the account card above and
   wears the same frame, its parts laid out across instead of down. */
.bp-role-grid.is-solo { grid-template-columns: minmax(0, 1fr); margin: 0 -2px; }
.is-solo .bp-role { border-radius: 20px; border-color: var(--set-line, #e6eaf1); box-shadow: 0 1px 2px rgba(14, 21, 71, .04), 0 18px 40px -28px rgba(22, 32, 99, .45); }
.is-solo .bp-role:hover { transform: none; border-color: color-mix(in srgb, var(--rv) 35%, #e6eaf1); }
.is-solo a.bp-role-main {
  grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: "ic t pct open" "meter meter meter meter" "opts opts opts opts";
  align-items: center; gap: 14px 16px; padding: 20px 24px 22px;
}
.is-solo .bp-role-ic { grid-area: ic; width: 44px; height: 44px; }
.is-solo .bp-role-t { grid-area: t; }
.is-solo .bp-role-t b { font-size: 16px; }
.is-solo .bp-role-pct { grid-area: pct; align-self: center; }
.is-solo .bp-role-pct b { font-size: 24px; }
.is-solo .bp-role-open { grid-area: open; margin: 0; padding-left: 16px; border-left: 1px solid #eef1f5; white-space: nowrap; }
.is-solo .bp-role-meter { grid-area: meter; height: 6px; }
.is-solo .bp-role-st { display: none; }
.is-solo .bp-role-opts { grid-area: opts; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 20px; margin: 0; }
.is-solo .bp-role-opts li { grid-template-columns: 14px auto auto; justify-content: start; }
@media (max-width: 640px) {
  .is-solo a.bp-role-main { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ic t pct" "meter meter meter" "opts opts opts" "open open open"; padding: 18px; }
  .is-solo .bp-role-open { padding-left: 0; border-left: 0; }
  .is-solo .bp-role-opts { grid-template-columns: minmax(0, 1fr); }
}
