/* EMS settings - round 5 (Tyler 11-05: "make the settings the same exact
   quality as the pathways one, was the best one we made"). Rules: DESIGN.md.
   MPMA Pathways' Settings (assets/css/settings.css + users.css there), ported
   class by class and re-tokened to EMS navy / red:
     - the page: its own page, a white rail card, every section stacked
     - Account: Pathways' base-profile card ("bp": band, photo, name, facts)
     - the profile: Pathways' profile header (icon, eyebrow, %, bar, Next)
     - Users / Program / Connections / Help: ONE card per section, inner
       tiles on a hairline (Pathways' team cards, table, app tiles, help boxes)
     - the record: Pathways' wide person record (gradient head, contact chips,
       underline tabs, a grey body of icon-headed cards)
   Entrances use fill-mode BACKWARDS (Pathways' lesson: `both` pins transform
   and kills every hover lift). Everything is still under reduced motion. */

:root {
  --set-line: var(--ems-line);            /* a tile's hairline (Pathways #e6eaf1) */
  --set-sep: #edf0f7;                     /* a rule inside a card (Pathways #eef1f6) */
  --set-head: #f8f9fc;                    /* a table's header row, a fact strip */
  --set-tint: #f3f5fb;                    /* a quiet navy wash (Pathways #f3f7fb) */
  --set-ink: var(--ems-ink);
  --set-mute: var(--ems-mute-2);
  --set-faint: var(--ems-faint);
  --set-rv: var(--ems-navy-500);          /* the profile's colour (Pathways --rv) */
  --set-rv-ink: var(--ems-navy-700);
  --set-rv-soft: var(--ems-navy-50);
  --set-rise: cubic-bezier(.22, 1, .36, 1);
}

/* ── the page takes the screen ───────────────────────────────────────────── */
/* Settings is its own page (Tyler 11-05): no app sidebar, no page topbar. */
body.ems-page #app { grid-template-columns: minmax(0, 1fr); }
body.ems-page #app > .sidebar { display: none !important; }
body.ems-page .content > .topbar { display: none; }
body.ems-page .content { max-width: none; background: #f4f6fa; }
body.ems-page #view { max-width: 1320px; margin: 0 auto; }

.set-shell { display: flex; gap: 28px; align-items: flex-start; }
.set-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

/* ── the rail (Pathways settings.css "rail") ─────────────────────────────── */
.set-rail {
  flex: 0 0 240px; min-width: 240px; box-sizing: border-box; position: sticky; top: 0; z-index: 4;
  display: flex; flex-direction: column; gap: 2px; padding: 16px 10px;
  background: #fff; border: 1px solid var(--set-line); border-radius: 16px; box-shadow: 0 1px 2px rgba(14, 21, 71, .04);
  max-height: calc(100vh - 64px - 40px); overflow-y: auto; scrollbar-width: thin;
}
.set-back {
  display: inline-flex; align-items: baseline; gap: 6px; margin: 0 0 10px; padding: 0 12px;
  font: 600 13px/1.35 var(--ems-font-ui); color: var(--set-mute); text-decoration: none; transition: color .15s;
}
.set-back span { transition: transform .2s var(--set-rise); }
.set-back:hover { color: var(--ems-navy-500); }
.set-back:hover span { transform: translateX(-3px); }
.set-title { margin: 0 0 6px; padding: 0 12px; font: 800 22px/1.2 var(--ems-font-display); letter-spacing: -.01em; color: var(--ems-navy-800); }
.set-nav { display: flex; flex-direction: column; gap: 2px; }
.set-rail-title { margin: 16px 0 4px; padding: 0 12px; font: 700 11px/1 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--set-faint); }
.set-link {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font: 500 14px/1.3 var(--ems-font-ui); color: var(--ems-ink-2); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.set-link svg { flex: none; opacity: .65; transition: opacity .15s; }
.set-link:hover { background: rgba(42, 56, 144, .06); color: var(--ems-navy-600); }
.set-link.active { background: rgba(42, 56, 144, .1); color: var(--ems-navy-600); font-weight: 600; }
.set-link:hover svg, .set-link.active svg { opacity: 1; }
.set-link.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: var(--ems-navy-500); animation: set-bar .3s var(--set-rise) both;
}
@keyframes set-bar { from { transform: scaleY(0); } to { transform: none; } }
.set-link:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.set-link-pct { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--ems-warn-50); color: var(--ems-warn); font: 700 11px/1.5 var(--ems-font-ui); }
.set-rail-foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--set-sep); }
.set-logout { display: block; padding: 9px 12px; border-radius: 10px; font: 500 14px/1.3 var(--ems-font-ui); color: var(--ems-red-600); text-decoration: none; transition: background-color .15s; }
.set-logout:hover { background: var(--ems-red-50); }

/* ── sections, cards ─────────────────────────────────────────────────────── */
.set-sec { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }
.set-sec:empty { display: none; }
.set-sec + .set-sec { margin-top: 28px; }
#set-sec-account + #set-sec-profile { margin-top: 22px; }
.set-card { background: #fff; border: 1px solid var(--set-line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 1px 2px rgba(14, 21, 71, .04); min-width: 0; }
.set-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.set-head > div:first-child { min-width: 0; }
.set-head h2, .set-card > h2 { margin: 0 0 4px; font: 800 20px/1.25 var(--ems-font-display); letter-spacing: -.01em; color: var(--set-ink); }
.set-head-act { display: flex; align-items: center; gap: 8px; flex: none; }
.set-note { margin: 0 0 16px; max-width: 78ch; font: 400 14px/1.55 var(--ems-font-body); color: var(--set-mute); }
.set-head .set-note { margin-bottom: 0; }
.set-fine { margin: 12px 0 0; max-width: 84ch; font: 400 13px/1.55 var(--ems-font-body); color: var(--set-mute); }
.set-fine.is-bad { color: var(--ems-red-600); }
.set-fine code, .set-rule code { font-size: 12px; background: var(--set-tint); padding: 1px 6px; border-radius: 6px; }
.set-count { font: 600 12.5px/1 var(--ems-font-ui); color: var(--set-mute); }
.set-dim { color: var(--set-faint); }
.set-upper { text-transform: uppercase; }
.set-grid3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .7fr) minmax(0, 1fr); gap: 12px; }
.set-dlg .field + .field, .set-dlg .field + .set-grid3 { margin-top: 12px; }
.set-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pathways' buttons (set-primary-btn / set-ghost-btn / set-danger-btn / set-link-btn). */
.set-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 16px; border-radius: 10px;
  font: 700 13.5px/1.2 var(--ems-font-ui); cursor: pointer; white-space: nowrap; text-decoration: none;
  border: 1px solid var(--ems-line-2); background: #fff; color: var(--set-ink);
  transition: filter .14s ease, transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}
.set-btn:hover { background: #f5f7fb; color: var(--set-ink); }
.set-btn.is-primary { border-color: transparent; background: var(--ems-navy-500); color: #fff; box-shadow: 0 1px 2px rgba(14, 21, 71, .12); }
.set-btn.is-primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14, 21, 71, .18); color: #fff; }
.set-btn.is-danger { border-color: var(--ems-red-200); background: var(--ems-red-50); color: var(--ems-red-600); }
.set-btn.is-danger:hover { background: var(--ems-red-100); color: var(--ems-red-700); }
.set-btn:active { transform: scale(.98); }
.set-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.set-btn:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.set-btn.is-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.set-btn svg { flex: none; }
.set-link-btn { display: inline; padding: 0 4px; border: 0; border-radius: 6px; background: none; font: 700 13px/1.4 var(--ems-font-ui); color: var(--ems-navy-500); cursor: pointer; }
.set-link-btn:hover { background: var(--set-tint); color: var(--ems-navy-700); }
.set-link-btn:focus-visible { outline: none; box-shadow: var(--ems-focus); }

/* A quiet "Saving… / Saved" beside a panel title. */
.set-saved { font: 600 12.5px/1 var(--ems-font-ui); color: var(--set-mute); opacity: 0; transform: translateY(2px); transition: opacity .18s ease, transform .18s ease; white-space: nowrap; }
.set-saved[data-st="saving"], .set-saved[data-st="saved"], .set-saved[data-st="error"] { opacity: 1; transform: none; }
.set-saved[data-st="saved"] { color: var(--ems-good); }
.set-saved[data-st="saved"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--ems-good); vertical-align: 1px; }
.set-saved[data-st="error"] { color: var(--ems-red-600); white-space: normal; text-align: right; }

/* A strip of fact (Pathways .uw-policy): an icon, a bold lead, the rest. */
.set-strip { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--set-tint); border: 1px solid #e3e8f4; font: 400 13px/1.5 var(--ems-font-body); color: var(--ems-ink-2); }
.set-strip svg { flex: none; margin-top: 2px; color: var(--ems-navy-500); }
.set-strip b { color: var(--ems-navy-600); font-weight: 700; }
.set-strip.is-hot { background: var(--ems-red-50); border-color: var(--ems-red-100); }
.set-strip.is-hot svg, .set-strip.is-hot b { color: var(--ems-red-600); }
.set-strip.is-wait { background: var(--ems-warn-50); border-color: #f6e2bf; }
.set-strip.is-wait svg, .set-strip.is-wait b { color: var(--ems-warn); }

/* A rule (Pathways .uwr-rule): icon, title, words, on a navy wash. */
.set-rule { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: var(--set-tint); border: 1px solid #e3e8f4; }
.set-rule > svg { flex: none; margin-top: 2px; color: var(--ems-navy-500); }
.set-rule b { display: block; margin-bottom: 2px; font: 700 13.5px/1.4 var(--ems-font-ui); color: var(--set-ink); }
.set-rule p { margin: 0; font: 400 13px/1.55 var(--ems-font-body); color: var(--ems-mute); }

/* ── Account: the base profile (Pathways "bp") ───────────────────────────── */
.bp { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--set-line); border-radius: 20px; box-shadow: 0 1px 2px rgba(14, 21, 71, .04), 0 18px 40px -28px rgba(22, 32, 99, .45); }
.bp-band {
  height: 104px;
  background: radial-gradient(60% 160% at 85% 0%, rgba(151, 162, 214, .42), transparent 60%), radial-gradient(90% 180% at 10% 0%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(115deg, var(--ems-navy-900) 0%, var(--ems-navy-700) 55%, var(--ems-navy-500) 100%);
}
.bp-id { position: relative; display: flex; align-items: flex-end; gap: 22px; padding: 0 28px; margin-top: -58px; }
.bp-photo { flex: none; }
.set-avatar-btn {
  position: relative; display: block; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: none;
  box-shadow: 0 0 0 5px #fff, 0 12px 28px rgba(14, 21, 71, .22); transition: box-shadow .18s ease, transform .18s ease;
}
.set-avatar-btn:hover, .set-avatar-btn:focus-visible { transform: translateY(-1px); outline: none; box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(42, 56, 144, .3), 0 14px 30px rgba(14, 21, 71, .26); }
.set-avatar { display: grid; place-items: center; flex: none; width: 128px; height: 128px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--ems-navy-400), var(--ems-navy-700)); color: #fff; font: 700 42px/1 var(--ems-font-display); letter-spacing: .5px; }
.set-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-avatar-overlay { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 50%; background: rgba(14, 21, 71, .62); color: #fff; font: 700 12px/1 var(--ems-font-ui); opacity: 0; transition: opacity .18s ease; }
.set-avatar-btn:hover .set-avatar-overlay, .set-avatar-btn:focus-visible .set-avatar-overlay { opacity: 1; }
/* The name sits wholly on white, under the band (it used to straddle it). */
.bp-who { flex: 1 1 auto; min-width: 0; align-self: flex-end; margin-top: 64px; padding-bottom: 10px; }
.bp-name { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0; padding: 2px 8px 2px 0; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; color: inherit; }
button.bp-name { cursor: pointer; transition: background-color .16s ease; }
button.bp-name:hover, button.bp-name:focus-visible { background: var(--set-tint); outline: none; }
.bp-name h2 { margin: 0; font: 800 32px/1.1 var(--ems-font-display); letter-spacing: -.02em; color: var(--set-ink); overflow-wrap: anywhere; }
.bp-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; align-self: flex-end; margin-top: 64px; padding-bottom: 16px; }
.bp-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font: 700 11px/1.3 var(--ems-font-ui); letter-spacing: .05em; text-transform: uppercase; background: var(--ems-navy-50); color: var(--ems-navy-600); }
.bp-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bp-tag.is-admin { background: var(--ems-navy-500); color: #fff; }
.bp-tag.is-demo { background: var(--ems-warn-50); color: var(--ems-warn); }
/* the facts: one strip, each a door to its own field */
.bp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 22px 0 0; border-top: 1px solid var(--set-sep); background: #fbfcfe; }
.bp-fact { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px 22px; border: 0; background: none; font: inherit; text-align: left; color: inherit; transition: background-color .16s ease; }
.bp-fact + .bp-fact { border-left: 1px solid var(--set-sep); }
.bp-fact-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--ems-navy-500); box-shadow: inset 0 0 0 1px #e1e6f2; }
.bp-fact-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bp-fact-b small { font: 700 11.5px/1.4 var(--ems-font-ui); letter-spacing: .04em; text-transform: uppercase; color: #8790a6; }
.bp-fact-b b { display: block; min-width: 0; font: 600 14.5px/1.4 var(--ems-font-ui); color: var(--set-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-add { display: inline-flex; align-items: center; gap: 5px; color: #4d5a80; font-weight: 600; }
.bp-fact-pen { margin-left: auto; flex: none; color: #9aa3b8; opacity: 0; transform: translateX(-4px); transition: opacity .16s ease, transform .16s ease, color .16s ease; }
.bp-fact.is-edit { cursor: pointer; }
.bp-fact.is-edit:hover, .bp-fact.is-edit:focus-visible { background: var(--set-tint); outline: none; }
.bp-fact.is-edit:hover .bp-fact-pen, .bp-fact.is-edit:focus-visible .bp-fact-pen, button.bp-name:hover .bp-fact-pen, button.bp-name:focus-visible .bp-fact-pen { opacity: 1; transform: none; color: var(--ems-navy-500); }
/* The whole of a value cut short, on hover (Pathways data-full). */
.bp-fact[data-full]::after { content: attr(data-full); position: absolute; left: 68px; bottom: calc(100% - 10px); z-index: 5; max-width: min(420px, 80vw); padding: 7px 10px; border-radius: 8px; background: var(--ems-navy-900); color: #fff; font: 600 13px/1.3 var(--ems-font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 10px 24px -12px rgba(14, 21, 71, .6); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
.bp-fact[data-full]:hover::after { opacity: 1; transform: none; }
.bp-foot { display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 12px 22px 14px; border-top: 1px solid var(--set-sep); background: #fbfcfe; font: 400 13px/1.5 var(--ems-font-body); color: var(--set-mute); }
.bp-foot svg { flex: none; margin-top: 2px; color: var(--ems-navy-400); }

/* ── the profile (Pathways' profile header "rp-head" + role card list) ───── */
.set-prof { position: relative; overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--set-rv) 22%, var(--set-line)); border-radius: 18px; box-shadow: 0 1px 2px rgba(14, 21, 71, .04), 0 24px 48px -40px rgba(22, 32, 99, .6); }
.set-prof::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 150px at 100% 0%, color-mix(in srgb, var(--set-rv) 14%, transparent), transparent 70%), linear-gradient(170deg, var(--set-rv-soft) 0px, #fff 190px); pointer-events: none; }
.set-prof::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--set-rv); }
.set-prof > * { position: relative; }
.set-prof-top { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(170px, 240px); align-items: center; gap: 16px 20px; padding: 22px 26px 18px; }
.set-prof-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: var(--set-rv-ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--set-rv) 80%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--set-rv) 25%, #fff); }
.set-prof-t { min-width: 0; }
.set-prof-eyebrow { display: inline-flex; align-items: center; gap: 5px; font: 800 11px/1.3 var(--ems-font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--set-rv-ink); }
.set-prof-eyebrow.is-todo { color: var(--ems-warn); }
.set-prof-t h3 { margin: 2px 0; font: 800 26px/1.2 var(--ems-font-display); letter-spacing: -.015em; color: var(--set-ink); }
.set-prof-t p { margin: 0; font: 400 14px/1.5 var(--ems-font-body); color: var(--ems-mute); }
.set-prof-meter { display: flex; flex-direction: column; gap: 6px; }
.set-prof-n { font: 700 13px/1 var(--ems-font-ui); color: var(--set-mute); text-align: right; }
.set-prof-n b { font: 800 24px/1 var(--ems-font-display); letter-spacing: -.02em; color: var(--set-ink); }
.set-prof-bar { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--set-rv) 14%, #eef1f6); overflow: hidden; }
.set-prof-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--set-rv); animation: set-grow 1s var(--set-rise) backwards; }
.set-prof-steps { display: flex; gap: 4px; justify-content: flex-end; }
.set-prof-steps i { width: 18px; height: 4px; border-radius: 99px; background: color-mix(in srgb, var(--set-rv) 18%, #e8edf5); }
.set-prof-steps i.is-done { background: var(--set-rv); }
/* what is in it: a quiet tick or an empty ring; only "Next" speaks */
.set-prof-list { list-style: none; margin: 0; padding: 4px 26px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 22px; }
.set-prof-list li { display: grid; grid-template-columns: 16px minmax(0, max-content) auto; justify-content: start; align-items: center; gap: 10px; min-width: 0; font: 500 14px/1.35 var(--ems-font-ui); color: var(--ems-ink-2); }
.set-prof-list li > i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #cfd6e6; color: #fff; }
.set-prof-list li.is-done > i { border-color: transparent; background: color-mix(in srgb, var(--set-rv) 85%, #fff); }
.set-prof-list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-prof-list li.is-done > span { color: var(--set-faint); }
.set-prof-list li.is-next { color: var(--set-ink); font-weight: 650; }
.set-prof-list li.is-next > i { border-color: var(--set-rv); box-shadow: 0 0 0 3px color-mix(in srgb, var(--set-rv) 14%, transparent); }
.set-prof-list li > small { font: 700 11px/1 var(--ems-font-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--set-rv-ink); }
.set-prof-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; padding: 14px 26px 16px; border-top: 1px solid color-mix(in srgb, var(--set-rv) 14%, var(--set-sep)); background: rgba(251, 252, 254, .9); }
.set-prof-next { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-prof-next span { font: 800 11px/1.3 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--set-mute); }
.set-prof-next b { font: 700 15px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.set-prof-next small { font: 400 13px/1.45 var(--ems-font-body); color: var(--set-mute); }
.set-prof-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.set-prof-go svg { transition: transform .18s ease; }
.set-prof-go:hover svg { transform: translateX(3px); }

/* ── Users (Pathways users.css + settings.css "Users") ───────────────────── */
.set-u-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 16px; }
.set-u-cards .ems-scorecard {
  display: flex; flex-direction: row; align-items: center; gap: 14px; width: 100%; min-height: 0; padding: 14px 18px; border-radius: 10px; text-align: left;
  background: #fff; border: 1px solid var(--set-line); box-shadow: 0 1px 2px rgba(14, 21, 71, .04); font: inherit; color: var(--set-ink); cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .14s var(--set-rise), background-color .2s ease;
}
.set-u-cards .ems-scorecard:hover { border-color: #cfd6e6; box-shadow: 0 4px 14px rgba(14, 21, 71, .07); transform: none; }
.set-u-cards .ems-scorecard:active { transform: scale(.99); }
.set-u-cards .ems-scorecard.is-on { border-color: var(--ems-navy-500); background: #f6f7fd; box-shadow: 0 0 0 2px rgba(42, 56, 144, .18); }
.set-u-cards .ems-scorecard::before, .set-u-cards .ems-scorecard::after { display: none; }
.set-u-cards .ems-scorecard-ic { flex: none; width: 42px; height: 42px; margin: 0; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ems-navy-50), var(--ems-navy-100)); color: var(--ems-navy-600); }
.set-u-cards [data-role="member"] .ems-scorecard-ic { background: linear-gradient(135deg, #ecf7f1, #d5efe1); color: var(--ems-good); }
.set-u-cards [data-role="coach"] .ems-scorecard-ic { background: linear-gradient(135deg, #fff7ea, #fdeacb); color: var(--ems-warn); }
.set-u-cards [data-role="admin"] .ems-scorecard-ic { background: linear-gradient(135deg, var(--ems-navy-400), var(--ems-navy-600)); color: #fff; }
.set-u-cards .set-u-ct { display: flex; flex-direction: column; min-width: 0; }
.set-u-cards .ems-scorecard-l { order: -1; margin: 0; font: 700 11px/1.3 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--set-mute); }
.set-u-cards .ems-scorecard-n { margin: 2px 0 0; font: 800 28px/1.05 var(--ems-font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--set-ink); }
.set-u-cards .set-u-cf { font: 400 12px/1.35 var(--ems-font-body); color: var(--set-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.set-u-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.set-search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--ems-line-2); color: var(--set-mute); transition: border-color .15s, box-shadow .15s;
}
.set-search:focus-within { border-color: var(--ems-navy-400); box-shadow: 0 0 0 3px rgba(42, 56, 144, .14); }
.set-search input { flex: 1; min-width: 0; min-height: 0; height: 42px; padding: 0; border: 0 !important; outline: none; box-shadow: none !important; background: transparent; font: 400 14.5px/1 var(--ems-font-ui); color: var(--set-ink); }
.set-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.set-chip { min-height: 36px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--ems-line-2); background: #fff; cursor: pointer; font: 600 13px/1.2 var(--ems-font-ui); color: var(--ems-ink-2); transition: background-color .15s, border-color .15s, color .15s; }
.set-chip span { margin-left: 2px; color: var(--set-faint); font-weight: 500; }
.set-chip:hover { border-color: var(--ems-navy-500); }
.set-chip.is-on { background: var(--ems-navy-500); border-color: var(--ems-navy-500); color: #fff; }
.set-chip.is-on span { color: rgba(255, 255, 255, .75); }
.set-chip:focus-visible { outline: none; box-shadow: var(--ems-focus); }

/* the table: one bordered box, a quiet header row, rows on a hairline */
.set-u-table { border: 1px solid var(--set-line); border-radius: 12px; background: #fff; overflow: hidden; }
.set-u-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, .85fr) minmax(0, .7fr);
  column-gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--set-sep); background: #fff; cursor: pointer;
  font: 400 13.5px/1.4 var(--ems-font-ui); color: var(--set-ink); transition: background-color .14s ease;
}
.set-u-row:not(.is-head):hover { background: #f5f7fc; }
.set-u-row:not(.is-head):focus-visible { background: #f5f7fc; outline: none; box-shadow: inset 0 0 0 2px rgba(42, 56, 144, .35); }
.set-u-row.is-head { border-top: 0; padding: 9px 14px; cursor: default; background: var(--set-head); font: 800 11px/1.2 var(--ems-font-ui); letter-spacing: .05em; text-transform: uppercase; color: var(--ems-mute); }
.set-u-row.is-flash { animation: set-flash 1.6s var(--ems-ease) 1; }
@keyframes set-flash { 0%, 30% { background: var(--ems-navy-100); } 100% { background: #fff; } }
.set-u-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.set-u-id { min-width: 0; }
.set-u-id b { display: block; font: 700 14px/1.3 var(--ems-font-ui); color: var(--set-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .14s; }
.set-u-row:hover .set-u-id b { color: var(--ems-navy-500); }
.set-u-id small { display: block; font: 400 12px/1.4 var(--ems-font-ui); color: var(--set-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-u-role { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.set-u-role .ems-tag { padding: 2px 9px; font: 700 12px/1.4 var(--ems-font-ui); }
.set-u-role small { max-width: 100%; font: 400 12px/1.3 var(--ems-font-ui); color: var(--set-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-u-detail, .set-u-when { min-width: 0; font: 400 13px/1.4 var(--ems-font-ui); color: var(--ems-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-u-flag { color: var(--ems-red-600); font-weight: 600; }
.set-u-none { padding: 22px 14px; border-top: 1px solid var(--set-sep); text-align: center; font: 400 13.5px/1.5 var(--ems-font-ui); color: var(--set-mute); }
.set-u-shown { margin: 8px 2px 0; font: 500 12.5px/1 var(--ems-font-ui); color: var(--set-mute); }
.ems-tag.is-admin { background: #ebe8fb; color: #4c3bb0; }
.ems-tag.is-mentor { background: #fdf1e4; color: #8a4a0b; }
.ems-tag.is-member { background: var(--ems-navy-50); color: var(--ems-navy-600); }
.set-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 700 11.5px/1.4 var(--ems-font-ui); white-space: nowrap; background: #e6f4ec; color: #17633d; }
.set-status[data-s="paused"] { background: #fdf0d9; color: #8a4f06; }
.set-status[data-s="closed"] { background: #eef0f5; color: var(--ems-mute); }
.set-status[data-s="suspended"] { background: #fde8e8; color: #9b1c1c; }
.set-u-av {
  flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ems-navy-400), var(--ems-navy-700)) center / cover no-repeat; color: #fff; font: 700 13px/1 var(--ems-font-display);
}
.set-u-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-u-av.is-lg { width: 104px; height: 104px; font-size: 34px; box-shadow: 0 0 0 4px #fff, 0 8px 22px rgba(22, 32, 99, .24); }
.set-u-av.demo-face { color: transparent; }

/* ── Program ─────────────────────────────────────────────────────────────── */
.set-panels { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.set-panel { padding: 22px 0 4px; border-top: 1px solid var(--set-sep); min-width: 0; }
.set-panel:first-child { border-top: 0; padding-top: 12px; }
.set-panel-h { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 4px 12px; margin-bottom: 14px; }
.set-panel-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--set-tint); color: var(--ems-navy-500); box-shadow: inset 0 0 0 1px #e1e6f2; }
.set-panel-h h3 { margin: 6px 0 2px; font: 700 16.5px/1.3 var(--ems-font-display); color: var(--set-ink); }
.set-panel-h p { grid-column: 2 / -1; margin: 0; max-width: 84ch; font: 400 13.5px/1.55 var(--ems-font-body); color: var(--set-mute); }
.set-panel-h .set-saved { margin-top: 10px; }
.set-sub-h { margin: 18px 0 10px; font: 700 14px/1.4 var(--ems-font-ui); color: var(--ems-navy-800); }

/* switches (Pathways .uw-switch knob) */
.set-switch {
  position: relative; flex: none; width: 40px; height: 24px; min-height: 0; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: #c9d0df; transition: background-color .18s, box-shadow .18s;
}
.set-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(14, 21, 71, .28); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.set-switch[aria-checked="true"] { background: var(--ems-navy-500); }
.set-switch[aria-checked="true"] i { transform: translateX(16px); }
.set-switch[aria-checked="mixed"] { background: var(--ems-navy-300); }
.set-switch[aria-checked="mixed"] i { transform: translateX(8px); }
.set-switch:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42, 56, 144, .3); }
.set-switch:disabled { opacity: .5; cursor: not-allowed; }
.set-switch.is-sm { width: 34px; height: 20px; }
.set-switch.is-sm i { width: 14px; height: 14px; }
.set-switch.is-sm[aria-checked="true"] i { transform: translateX(14px); }
.set-switch.is-sm[aria-checked="mixed"] i { transform: translateX(7px); }

/* Tool visibility: one group per journey section, each tool a small app tile
   (Pathways' connection tiles, settings.js cxTile): icon, name, on/off, switch. */
.set-groups { display: flex; flex-direction: column; gap: 18px; }
.set-group-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.set-group-txt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; flex: 1; }
.set-group-txt b { font: 800 11.5px/1.3 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ems-mute); }
.set-group-txt small { font: 500 12.5px/1.3 var(--ems-font-ui); color: var(--set-faint); }
.set-group-all { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--ems-font-ui); color: var(--set-mute); }
.set-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.set-tool {
  display: flex; align-items: center; gap: 11px; min-width: 0; height: 56px; padding: 0 12px; border: 1px solid var(--set-line); border-radius: 12px; background: #fff; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease;
}
.set-tool:hover { transform: translateY(-1px); border-color: #d3d9e8; box-shadow: 0 8px 20px -14px rgba(14, 21, 71, .4); }
.set-tool-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ems-navy-50); color: var(--ems-navy-500); transition: background-color .16s, color .16s; }
.set-tool-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.set-tool-t b { font: 600 13.5px/1.3 var(--ems-font-ui); color: var(--set-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-tool-st { display: flex; align-items: center; gap: 5px; font: 600 11.5px/1.2 var(--ems-font-ui); color: var(--ems-good); }
.set-tool-st::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #22a35a; }
.set-tool.is-off { background: #fafbfd; }
.set-tool.is-off .set-tool-ic { background: #eef0f5; color: var(--set-faint); }
.set-tool.is-off .set-tool-t b { color: var(--set-mute); }
.set-tool.is-off .set-tool-st { color: var(--set-faint); }
.set-tool.is-off .set-tool-st::before { background: #c9d0df; }
.set-tool.is-ro { cursor: default; }
.set-tool.is-ro:hover { transform: none; box-shadow: none; }

/* Single choices: Pathways' role cards (uw-roleopt), a radio dot instead of a tick. */
.set-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.set-choices.is-col { grid-template-columns: minmax(0, 1fr); }
.set-choice {
  position: relative; display: flex; align-items: flex-start; gap: 11px; width: 100%; min-height: 0; padding: 13px 14px; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid #d7dceb; border-radius: 12px; font: inherit; color: var(--set-ink); box-shadow: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.set-choice:hover:not(:disabled) { border-color: #9aa6cc; background: #fff; }
.set-choice:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42, 56, 144, .3); }
.set-choice[aria-checked="true"] { border-color: var(--ems-navy-500); background: #f4f6fc; box-shadow: 0 0 0 2px rgba(42, 56, 144, .14); }
.set-choice:disabled { cursor: default; opacity: .72; }
.set-choice-dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #c3cadb; background: #fff; transition: border-color .15s, border-width .18s var(--set-rise); }
.set-choice[aria-checked="true"] .set-choice-dot { border-color: var(--ems-navy-500); border-width: 5.5px; }
.set-choice-txt { flex: 1; min-width: 0; }
.set-choice-txt b { display: block; font: 700 14px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.set-choice-txt small { display: block; margin-top: 3px; font: 400 13px/1.5 var(--ems-font-body); color: var(--set-mute); }
.set-choice .ems-plate { width: 34px; height: 34px; border-radius: 10px; background: #eef1fa; color: var(--ems-navy-500); transition: background-color .15s, color .15s; }
.set-choice[aria-checked="true"] .ems-plate { background: var(--ems-navy-500); color: #fff; }
.set-choice.is-plate .set-choice-dot { position: absolute; top: 12px; right: 12px; }
.set-choice.is-plate { padding-right: 40px; }
.set-fb-email { margin-top: 14px; max-width: 420px; }
/* Mentor matching numbers (11-09): three small boxes in a row, stacked on phones. */
.set-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.set-nums .field input { max-width: 120px; }
.set-nums small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; }
@media (max-width: 760px) { .set-nums { grid-template-columns: 1fr; } }
.set-fb-email input.is-bad { border-color: var(--ems-red-400); }

/* Mentors can see: the scopes as small switch rows in a soft box. */
.set-scopes { margin: 14px 0 0; }
.set-scope-list { list-style: none; margin: 0; padding: 6px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; border: 1px solid var(--set-line); border-radius: 12px; background: #fbfcfe; }
.set-scope-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--set-sep); font: 500 13.5px/1.35 var(--ems-font-ui); color: var(--ems-ink-2); }
.set-scope-list li:nth-child(-n+2) { border-top: 0; }

/* Segmented control (model tiers; Pathways .rp-switch). */
.set-seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: #eef1f6; }
.set-seg button {
  min-height: 32px; padding: 5px 13px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; box-shadow: none;
  font: 700 12.5px/1.2 var(--ems-font-ui); color: var(--ems-mute); transition: background-color .16s, color .16s, box-shadow .16s;
}
.set-seg button:hover:not(:disabled) { background: #fff; color: var(--set-ink); }
.set-seg button[aria-checked="true"], .set-seg button[aria-selected="true"] { background: #fff; color: var(--ems-navy-600); box-shadow: 0 1px 2px rgba(14, 21, 71, .1), inset 0 0 0 1px rgba(42, 56, 144, .28); }
.set-seg button:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(42, 56, 144, .45); }
.set-seg button:disabled { cursor: not-allowed; opacity: .6; }
.set-routes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.set-routes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 8px 8px 8px 14px; border: 1px solid var(--set-line); border-radius: 12px; background: #fff; }
.set-route-name { min-width: 0; font: 600 13.5px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.set-route-name em { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 700 10.5px/1.4 var(--ems-font-ui); font-style: normal; letter-spacing: .03em; background: var(--ems-warn-50); color: var(--ems-warn); vertical-align: 1px; }
.set-route-name em[hidden] { display: none; }

/* About this program: facts as small tiles (Pathways .conn-stats). */
.set-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.set-stats > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--set-line); border-radius: 12px; background: #fff; }
.set-stats span { display: block; font: 700 11px/1.3 var(--ems-font-ui); letter-spacing: .04em; text-transform: uppercase; color: #8790a6; }
.set-stats b { display: block; margin: 3px 0 0; font: 700 15px/1.35 var(--ems-font-ui); color: var(--set-ink); overflow-wrap: anywhere; }
.set-stats small { display: block; margin-top: 2px; font: 400 12px/1.4 var(--ems-font-body); color: var(--set-mute); }
.set-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }

/* ── Connections (Pathways: a feature card, then every connection an app tile) */
.set-cx-feature { position: relative; overflow: hidden; margin-top: 14px; padding: 22px 24px; border: 1px solid #d5ead9; border-radius: 18px; background: radial-gradient(120% 140% at 100% 0%, #eff9f3 0%, #fff 55%); box-shadow: 0 1px 2px rgba(14, 21, 71, .04), 0 10px 30px -18px rgba(31, 122, 77, .35); }
.set-cx-feature.is-hot { border-color: var(--ems-red-200); background: radial-gradient(120% 140% at 100% 0%, var(--ems-red-50) 0%, #fff 55%); box-shadow: 0 1px 2px rgba(14, 21, 71, .04), 0 10px 30px -18px rgba(190, 30, 45, .35); }
.set-cx-feature.is-wait { border-color: #efdcb8; background: radial-gradient(120% 140% at 100% 0%, #fff7ea 0%, #fff 55%); box-shadow: 0 1px 2px rgba(14, 21, 71, .04), 0 10px 30px -18px rgba(161, 92, 7, .3); }
.set-cx-ftop { display: flex; align-items: center; gap: 14px; }
.set-cx-flogo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ems-navy-500); color: #fff; box-shadow: 0 6px 16px -6px rgba(42, 56, 144, .6); }
.set-cx-ft { min-width: 0; flex: 1; }
.set-cx-ft h3 { margin: 0; font: 800 20px/1.25 var(--ems-font-display); letter-spacing: -.01em; color: var(--set-ink); }
.set-cx-ft span { font: 400 13px/1.4 var(--ems-font-body); color: var(--set-mute); }
.set-pill { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 11px; border-radius: 999px; font: 700 11.5px/1.3 var(--ems-font-ui); white-space: nowrap; background: #eef0f5; color: var(--ems-mute); }
.set-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.set-pill[data-tone="ok"] { background: #e6f4ec; color: #17633d; }
.set-pill[data-tone="bad"] { background: var(--ems-red-50); color: var(--ems-red-600); }
.set-pill[data-tone="wait"] { background: var(--ems-warn-50); color: var(--ems-warn); }
.set-cx-line { margin: 14px 0 0; font: 400 14px/1.55 var(--ems-font-body); color: var(--ems-ink-2); }
.set-cx-feature .set-stats { margin: 16px 0 0; }
.set-cx-feature .set-stats b[data-tone="ok"] { color: #17633d; }
.set-cx-feature .set-stats b[data-tone="bad"] { color: var(--ems-red-600); }
.set-cx-group { margin-top: 22px; }
.set-cx-gh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; }
.set-cx-gh b { font: 800 11.5px/1.3 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: #7c859b; }
.set-cx-gh small { font: 400 12.5px/1.4 var(--ems-font-body); color: var(--set-mute); }
.set-cxs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.set-cxs > li { min-width: 0; }
.set-cx {
  display: flex; align-items: center; gap: 11px; width: 100%; min-width: 0; height: 60px; min-height: 0; padding: 0 12px; border: 1px solid var(--set-line); border-radius: 12px; background: #fff;
  font: inherit; text-align: left; color: inherit; cursor: pointer; box-shadow: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.set-cx:hover { transform: translateY(-1px); border-color: #d3d9e8; box-shadow: 0 8px 20px -14px rgba(14, 21, 71, .4); background: #fff; }
.set-cx:focus-visible { outline: none; border-color: var(--ems-navy-400); box-shadow: 0 0 0 3px rgba(42, 56, 144, .22); }
.set-cx.is-hot { border-color: var(--ems-red-200); background: #fffafa; }
.set-cx-logo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; background: var(--ems-navy-50); color: var(--ems-navy-500); }
.set-cx-logo.is-txt { background: var(--ems-navy-700); color: #fff; font: 800 12.5px/1 var(--ems-font-ui); letter-spacing: .02em; }
.set-cx-logo.is-ms { background: #fff; box-shadow: inset 0 0 0 1px var(--set-line); }
.set-cx-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-cx-t b { font: 700 13.5px/1.3 var(--ems-font-ui); color: var(--set-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-cx-st { display: flex; align-items: center; gap: 5px; min-width: 0; font: 600 11.5px/1.2 var(--ems-font-ui); color: var(--set-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-cx-st::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #c9d0df; }
.set-cx-st[data-tone="ok"] { color: #17633d; }
.set-cx-st[data-tone="ok"]::before { background: #22a35a; }
.set-cx-st[data-tone="bad"] { color: var(--ems-red-600); }
.set-cx-st[data-tone="bad"]::before { background: var(--ems-red-500); }
.set-cx-st[data-tone="wait"] { color: var(--ems-warn); }
.set-cx-st[data-tone="wait"]::before { background: #e0a43a; }
/* a connection's own pop-up (Pathways .cx-dlg) */
.set-cx-dlg { display: grid; gap: 12px; }
.set-cx-dlg-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; margin: 0; font: 400 14px/1.5 var(--ems-font-body); color: var(--ems-ink-2); }
.set-cx-dlg-row small { padding-top: 2px; font: 700 11.5px/1.4 var(--ems-font-ui); letter-spacing: .05em; text-transform: uppercase; color: #8790a6; }
.set-cx-tiers { display: flex; flex-wrap: wrap; gap: 6px; }
.set-cx-tiers em { padding: 2px 9px; border-radius: 999px; font: 700 12px/1.5 var(--ems-font-ui); font-style: normal; background: #eef0f5; color: var(--set-faint); }
.set-cx-tiers em.is-on { background: #e6f4ec; color: #17633d; }

/* ── Help (Pathways 819f6b3: boxes side by side) ─────────────────────────── */
.set-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.set-help-box {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--set-line);
  text-decoration: none; color: inherit; transition: transform .22s var(--set-rise), border-color .2s, box-shadow .22s;
}
a.set-help-box:hover, a.set-help-box:focus-visible { transform: translateY(-2px); border-color: #c7cfe6; box-shadow: 0 12px 26px -16px rgba(14, 21, 71, .38); outline: none; color: inherit; }
.set-help-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--set-tint); color: var(--ems-navy-500); }
.set-help-txt { flex: 1; min-width: 0; }
.set-help-txt b { display: block; font: 700 15px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.set-help-txt small { display: block; margin-top: 2px; font: 400 13px/1.45 var(--ems-font-body); color: var(--set-mute); }
.set-help-go { flex: none; display: grid; place-items: center; font-size: 18px; color: var(--set-faint); transition: transform .2s var(--set-rise), color .2s; }
a.set-help-box:hover .set-help-go { transform: translateX(3px); color: var(--ems-navy-500); }
.set-crisis { margin-top: 16px; }

/* ── pop-ups (Pathways .set-dlg) ─────────────────────────────────────────── */
.modal.set-dlg { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 80px); }
.modal.set-dlg.is-wide { max-width: 640px; }
.set-dlg > .modal-head { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 12px; border-bottom: 0; position: static; }
.set-dlg-titles { flex: 1; min-width: 0; }
.set-dlg-titles h2 { margin: 0; font: 800 19px/1.3 var(--ems-font-display); color: var(--set-ink); overflow-wrap: anywhere; }
.set-dlg-titles p { margin: 4px 0 0; font: 400 13.5px/1.5 var(--ems-font-body); color: var(--set-mute); }
.set-dlg-titles p:empty { display: none; }
.set-dlg .modal-x { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.set-dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 22px 18px; }
.set-dlg-foot { flex: none; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--set-sep); background: #fff; }
.set-dlg-foot[hidden] { display: none; }
.set-dlg-foot .set-foot-left { margin-right: auto; display: flex; gap: 8px; }
.set-dlg .field { display: block; }
.set-kicker { display: block; margin: 0 0 10px; font: 800 11px/1.3 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ems-navy-500); }
.set-kicker i { margin-left: 6px; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--set-faint); }
.set-dlg-sec { padding: 14px 0 2px; border-top: 1px solid var(--set-sep); }
.set-dlg-sec:first-child { padding-top: 4px; border-top: 0; }
.set-dlg .set-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.set-dlg .set-choice.is-plate { flex-direction: column; gap: 8px; }
/* Program's pop-ups (Tyler 11-15: "way too confusing ... buttons way too big"):
   narrow, choices stacked as slim rows, people with faces, quiet buttons. */
.modal.set-dlg.is-prog { max-width: 480px; }
.modal.set-dlg.is-prog.is-wide { max-width: 620px; }
.set-dlg .set-choices.is-col { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.set-dlg.is-prog .set-choice { align-items: center; padding: 10px 12px; border-width: 1px; border-radius: 10px; }
.set-dlg.is-prog .set-choice[aria-checked="true"] { box-shadow: none; }
.set-dlg.is-prog .set-choice-dot { width: 16px; height: 16px; margin-top: 0; }
.set-dlg.is-prog .set-choice[aria-checked="true"] .set-choice-dot { border-width: 5px; }
.set-dlg.is-prog .set-choice-txt b { font-size: 13.5px; }
.set-dlg.is-prog .set-choice-txt small { margin-top: 1px; font-size: 12.5px; line-height: 1.4; }
.set-dlg.is-prog .set-scope-list, .set-dlg.is-prog .set-plist, .set-dlg.is-prog .set-choices + .field, .set-dlg.is-prog .set-grid2 { margin-top: 12px; }
.set-dlg.is-prog .set-scope-list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.set-dlg-foot .set-btn { min-height: 34px; padding: 7px 14px; font-size: 13px; border-radius: 9px; }
/* A picker of people: face, full name, address under it, a switch. One column, never wider than the pop-up. */
.set-plist { list-style: none; margin: 0; padding: 4px 12px; border: 1px solid var(--set-line); border-radius: 12px; background: #fbfcfe; }
.set-plist[hidden] { display: none; }
.set-plist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.set-plist li + li { border-top: 1px solid var(--set-sep); }
.set-pp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.set-pp .set-u-av { width: 32px; height: 32px; font-size: 12px; }
.set-pp-t { display: flex; flex-direction: column; min-width: 0; }
.set-pp-t b, .set-pp-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-pp-t b { font: 600 13.5px/1.3 var(--ems-font-ui); color: var(--set-ink); }
.set-pp-t small { font: 400 12px/1.35 var(--ems-font-body); color: var(--set-mute); }
.set-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 12px; align-items: end; }
.set-dlg .set-grid2 > .field { margin-top: 0; }
.set-opt { margin-left: 4px; font-style: normal; font-weight: 500; font-size: 12px; color: var(--set-faint); }
.set-mail-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--set-tint); font: 500 13px/1.5 var(--ems-font-ui); color: var(--ems-ink-2); }
.set-mail-note svg { flex: none; margin-top: 2px; color: var(--ems-navy-500); }
.set-err { margin: 10px 0 0; font: 600 13.5px/1.45 var(--ems-font-ui); color: var(--ems-red-600); }
.set-err[hidden] { display: none; }

/* the confirm step: says what happens before it runs */
.set-confirm { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 10px 6px; }
.set-confirm-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--ems-navy-50); color: var(--ems-navy-500); }
.set-confirm-ic.is-hot { background: var(--ems-red-50); color: var(--ems-red-600); }
.set-confirm h3 { margin: 0 0 8px; font: 800 20px/1.3 var(--ems-font-display); color: var(--set-ink); }
.set-confirm p { margin: 0; max-width: 460px; font: 400 14.5px/1.55 var(--ems-font-body); color: var(--ems-mute); }
.set-confirm .set-mail-note { justify-content: center; }

/* ── a person's record (Pathways users.css "a person's record, tabbed") ───── */
/* Tyler 11-16: "a spacious, professional profile, not a tiny window containing
   an entire website". The record, the member profile and the mentor profile
   are this one pop-up: 90% of the screen, a short head (photo, name + tags on
   one line, role + contact under it, tabs), no Close footer, and ONE scroller
   (the body). data-kind (member | mentor | admin) colours the accent, so the
   three read apart at a glance. */
.modal.set-dlg.is-rec { --rk: var(--ems-navy-500); --rk-soft: #e3e7f8; position: relative; width: min(1200px, calc(100vw - 48px)); max-width: none; height: 90vh; height: 90dvh; max-height: 90dvh; }
.modal.set-dlg.is-rec[data-kind="mentor"] { --rk: var(--ems-red-600); --rk-soft: #f8e3e5; }
.modal.set-dlg.is-rec[data-kind="admin"] { --rk: #a87a1c; --rk-soft: var(--ems-gold-100); }
.modal.set-dlg.is-rec::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; z-index: 2; background: var(--rk); }
.set-dlg.is-rec > .modal-head { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; background: radial-gradient(120% 180% at 0% 0%, var(--rk-soft) 0%, #f5f6fc 42%, #fff 100%); box-shadow: inset 0 -1px 0 #e7eaf3; }
.set-dlg.is-rec .modal-x { position: absolute; top: 16px; right: 16px; }
.set-rec-top { display: flex; align-items: center; gap: 18px; padding: 18px 64px 10px 24px; }
.set-dlg.is-rec .set-rec-top .set-u-av.is-lg { width: 72px; height: 72px; font-size: 24px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rk), 0 8px 18px rgba(22, 32, 99, .2); }
.set-rec-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.set-rec-name, .set-rec-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.set-rec-id h2 { margin: 0; font: 800 24px/1.15 var(--ems-font-display); letter-spacing: -.02em; color: var(--set-ink); overflow-wrap: anywhere; }
.set-rec-line { margin: 0; font: 600 14.5px/1.4 var(--ems-font-ui); color: var(--ems-ink-2); }
.set-rec-acts { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.set-rec-acts .set-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 7px 14px; font-size: 13px; border-radius: 9px; text-decoration: none; white-space: nowrap; }
.set-rec-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.set-rec-tags .ems-tag { padding: 3px 10px; font: 700 12px/1.4 var(--ems-font-ui); }
.set-rec-contact { display: flex; flex-wrap: wrap; gap: 6px; }
.set-rec-contact > * { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e0e6f2; color: var(--ems-navy-600); font: 600 12.5px/1.3 var(--ems-font-ui); text-decoration: none; }
.set-rec-contact > * span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-rec-contact a:hover { border-color: #b9c3e2; background: #f8f9fe; }
.set-rec-contact .is-plain { color: var(--ems-mute); }
.set-rec-tabs { display: flex; gap: 2px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.set-dlg.is-rec .set-rec-tab { padding: 10px 12px 10px; }
.set-dlg.is-rec .set-rec-tab[aria-selected="true"] { color: var(--rk); }
.set-dlg.is-rec .set-rec-tab::after { background: var(--rk); }
.set-rec-tabs::-webkit-scrollbar { display: none; }
.set-rec-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 0; padding: 13px 12px 12px; border: 0; border-radius: 0; background: none; box-shadow: none; font: 700 13.5px/1.2 var(--ems-font-ui); color: var(--set-mute); cursor: pointer; white-space: nowrap; transition: color .15s; }
.set-rec-tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ems-navy-500); transform: scaleX(0); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.set-rec-tab:hover { color: var(--set-ink); background: none; }
.set-rec-tab[aria-selected="true"] { color: var(--ems-navy-600); }
.set-rec-tab[aria-selected="true"]::after { transform: scaleX(1); }
.set-rec-tab:focus-visible { outline: 2px solid rgba(42, 56, 144, .45); outline-offset: -4px; border-radius: 8px; }
.set-rec-tab small { padding: 1px 7px; border-radius: 999px; background: #eef0f5; color: var(--ems-mute); font: 700 11.5px/1.4 var(--ems-font-ui); }
.set-rec-tab[aria-selected="true"] small { background: var(--ems-navy-50); color: var(--ems-navy-600); }
.set-dlg.is-rec .set-dlg-body { padding: 16px 24px 22px; background: #f5f7fb; }
.set-dlg.is-rec .set-dlg-foot { padding-left: 28px; padding-right: 28px; }
.set-rec-pane { display: flex; flex-direction: column; gap: 12px; }
.set-rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.set-rec-card { min-width: 0; padding: 14px 18px; border: 1px solid #e4e8f1; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(14, 21, 71, .04); }
.set-rec-card.is-wide { grid-column: 1 / -1; }
.set-rec-card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 800 14.5px/1.3 var(--ems-font-ui); color: var(--set-ink); }
.set-rec-card-h small { margin-left: auto; font: 600 12px/1.3 var(--ems-font-ui); color: var(--set-faint); }
.set-rec-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #e8ebf8, #f3f5fc); color: var(--ems-navy-500); }
.set-rec-rows { margin: 0; display: grid; }
.set-rec-row { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid #f0f2f8; }
.set-rec-row:first-child { border-top: 0; padding-top: 2px; }
.set-rec-row dt { font: 400 13px/1.45 var(--ems-font-ui); color: var(--set-mute); }
.set-rec-row dd { margin: 0; min-width: 0; font: 600 14px/1.45 var(--ems-font-ui); color: var(--set-ink); overflow-wrap: anywhere; }
.set-rec-none { color: #a3abbf; font-weight: 500; }
.set-rec-quote { margin: 0; font: italic 400 15px/1.6 var(--ems-font-body); color: var(--ems-ink-2); }
.set-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.set-pills i { padding: 3px 10px; border-radius: 999px; background: var(--ems-navy-50); font: 600 12.5px/1.4 var(--ems-font-ui); font-style: normal; color: var(--ems-navy-700); }
.set-rec-note { display: flex; gap: 8px; align-items: flex-start; margin: 2px 2px 0; font: 400 13px/1.5 var(--ems-font-body); color: var(--set-mute); }
.set-rec-note svg { flex: none; margin-top: 2px; }
/* actions: a row each, the words say what happens (Pathways .acct-row--link) */
.set-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.set-act { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #eceff6; border-radius: 12px; background: #fdfdff; transition: border-color .16s ease, box-shadow .16s ease; }
.set-act:hover { border-color: #d3d9e8; box-shadow: 0 8px 16px -12px rgba(14, 21, 71, .25); }
.set-act-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--set-tint); color: var(--ems-navy-500); }
.set-act.is-danger .set-act-ic { background: var(--ems-red-50); color: var(--ems-red-600); }
.set-act-t { flex: 1; min-width: 0; }
.set-act-t b { display: block; font: 700 14px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.set-act-t small { display: block; margin-top: 2px; font: 400 12.5px/1.45 var(--ems-font-body); color: var(--set-mute); }
/* role: Pathways' role option cards with a tick */
.set-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.set-roleopt { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; padding: 12px 40px 12px 12px; border: 1.5px solid #d7dceb; border-radius: 12px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: none; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.set-roleopt:hover { border-color: #9aa6cc; background: #fff; }
.set-roleopt[aria-checked="true"] { border-color: var(--ems-navy-500); background: #f4f6fc; box-shadow: 0 0 0 2px rgba(42, 56, 144, .14); }
.set-roleopt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42, 56, 144, .3); }
.set-roleic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #eef1fa; color: var(--ems-navy-500); transition: background-color .15s, color .15s; }
.set-roleopt[aria-checked="true"] .set-roleic { background: var(--ems-navy-500); color: #fff; }
.set-roletxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-roletxt b { font: 700 14px/1.3 var(--ems-font-ui); color: var(--set-ink); }
.set-roletxt small { font: 400 12.5px/1.4 var(--ems-font-body); color: var(--set-mute); }
.set-roletick { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c9d0df; background: #fff; color: transparent; transition: background-color .15s, border-color .15s, color .15s; }
.set-roleopt[aria-checked="true"] .set-roletick { background: var(--ems-navy-500); border-color: var(--ems-navy-500); color: #fff; }

/* ── a member's profile sections (Tyler 11-08): what is on file, read-only;
   one Edit opens the pop-up, nothing changes until Save ─────────────────── */
.set-psec .set-head { margin-bottom: 14px; }
.set-psec .set-head h2 { display: flex; align-items: center; gap: 8px; }
.set-sum { margin: 0; border-top: 1px solid var(--set-sep); }
.set-sum-row { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--set-sep); }
.set-sum-row:last-child { border-bottom: 0; }
.set-sum-row dt { font: 600 13px/1.5 var(--ems-font-ui); color: var(--set-mute); }
.set-sum-row dd { margin: 0; min-width: 0; font: 500 14.5px/1.5 var(--ems-font-ui); color: var(--set-ink); overflow-wrap: anywhere; }
.set-sum-row.is-long dd { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--ems-font-body); white-space: pre-line; }
.set-sum-none { color: var(--set-faint); font-weight: 500; }
.set-sum-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ems-ok, #1d7a4a); font-weight: 600; }
.set-sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.set-sum-chips em { padding: 3px 10px; border-radius: 999px; background: var(--set-rv-soft); color: var(--set-rv-ink); font: 600 12.5px/1.5 var(--ems-font-ui); font-style: normal; }
/* Mentor & sharing read-back: every option with its state, plain text, not
   pills (pills read as something to tap; the switches live behind Edit). */
.set-share-sum { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.set-share-sum > span { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.6 var(--ems-font-ui); color: var(--set-ink); }
.set-share-sum > span svg { color: var(--ems-ok, #1d7a4a); flex: none; }
.set-share-sum small { font: 600 11px/1 var(--ems-font-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ems-ok, #1d7a4a); }
.set-share-sum > .is-off { color: var(--set-faint); font-weight: 500; padding-left: 18px; }
.set-share-sum > .is-off small { color: var(--set-faint); }
.set-sum-act { margin-top: 14px; }
/* 11-08 night (Tyler: "way too bland"): the header wears its section's icon,
   the facts are tiles with their own icon, a long answer is a quote. */
.set-psec .set-head { justify-content: flex-start; }
.set-psec .set-head-t { flex: 1 1 auto; min-width: 0; }
.set-head-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--set-rv-soft); color: var(--set-rv-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--set-rv) 16%, #fff); }
.set-psec .set-note { margin-bottom: 0; }
.set-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; }
.set-tile { display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 12px 14px; border: 1px solid var(--set-sep); border-radius: 13px; background: #fbfcfe; }
.set-tile.is-wide, .set-tile.is-long { grid-column: 1 / -1; }
.set-tile-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--set-rv); box-shadow: inset 0 0 0 1px var(--set-sep); }
.set-tile-b { display: block; flex: 1 1 auto; min-width: 0; }
.set-tile dt { margin: 0 0 2px; font: 700 11px/1.3 var(--ems-font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--set-mute); }
.set-tile dd { margin: 0; min-width: 0; font: 600 14.5px/1.45 var(--ems-font-ui); color: var(--set-ink); overflow-wrap: anywhere; }
.set-tile.is-long { background: #fff; border-left: 3px solid var(--set-rv); }
.set-tile.is-long dd { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font: 400 14.5px/1.6 var(--ems-font-body); white-space: pre-line; }
/* the mentor, as a person; the résumé, as a document */
.set-mcard, .set-rcard { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--set-rv) 20%, var(--set-line)); border-radius: 16px; background: linear-gradient(160deg, var(--set-rv-soft), #fff 70%); }
.set-rcard { margin: 12px 0 0; }
.set-mcard-av { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ems-navy-700); color: #fff; font: 800 22px/1 var(--ems-font-display); box-shadow: 0 0 0 3px #fff, 0 10px 22px -12px rgba(14, 21, 71, .6); }
.set-mcard-av img { width: 100%; height: 100%; object-fit: cover; }
.set-mcard-av.is-get { background: #fff; color: var(--set-rv-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--set-rv) 30%, #fff); }
.set-rcard-doc { flex: none; display: grid; place-items: center; width: 52px; height: 64px; border-radius: 8px; background: #fff; color: var(--set-faint); box-shadow: inset 0 0 0 1.5px var(--set-line), 0 8px 18px -12px rgba(14, 21, 71, .45); }
.set-rcard-doc.is-on { color: var(--set-rv); }
.set-rcard.is-ask { margin-top: 0; }
.set-rcard-doc.is-round { width: 56px; height: 56px; border-radius: 16px; color: var(--set-rv-ink); }
.set-mcard-b, .set-rcard-b { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.set-mcard-b small, .set-rcard-b small { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1.3 var(--ems-font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--set-mute); }
.set-mcard-b b, .set-rcard-b b { font: 800 18px/1.3 var(--ems-font-display); color: var(--set-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-mcard-b span, .set-rcard-b span { font: 400 13.5px/1.5 var(--ems-font-body); color: var(--set-mute); }
.set-mcard-b small .set-sum-ok, .set-rcard-b small .set-sum-ok { text-transform: none; letter-spacing: 0; }
.set-mcard-more { font: 600 13px/1 var(--ems-font-ui); font-style: normal; color: var(--set-mute); }
.set-mcard-act, .set-rcard-act { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.set-rview { margin: 0; max-height: 60vh; overflow: auto; padding: 16px; border: 1px solid var(--set-sep); border-radius: 12px; background: #fbfcfe; font: 400 13.5px/1.6 var(--ems-font-body); white-space: pre-wrap; }
@media (max-width: 760px) {
  .set-mcard, .set-rcard { flex-wrap: wrap; }
  .set-mcard-act, .set-rcard-act { width: 100%; }
}
.set-dlg textarea, .set-dlg select { width: 100%; }
.set-dlg .gate-checks { margin-top: 0; }
.set-share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; padding: 12px 14px; border: 1px solid var(--set-line); border-radius: 12px; background: #fbfcfe; }
.set-share-row b { display: block; font: 700 14px/1.4 var(--ems-font-ui); color: var(--set-ink); }
.set-share-row small { font: 400 12.5px/1.4 var(--ems-font-body); color: var(--set-mute); }
/* "What the AI is told about you": an info dot, its list on hover or focus */
.set-info { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--set-faint); cursor: help; outline: none; transition: color .15s, background-color .15s; }
.set-info:hover, .set-info:focus-visible { color: var(--ems-navy-500); background: var(--set-tint); }
.set-info-pop { position: absolute; left: 50%; top: calc(100% + 8px); z-index: 20; width: min(360px, 80vw); padding: 14px 16px; border-radius: 12px; background: var(--ems-navy-900); color: #fff; box-shadow: 0 18px 40px -18px rgba(14, 21, 71, .7); font: 400 13px/1.5 var(--ems-font-body); text-align: left; letter-spacing: 0; opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.set-info:hover .set-info-pop, .set-info:focus .set-info-pop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.set-info-pop b { display: block; margin-bottom: 4px; font: 700 13.5px/1.4 var(--ems-font-ui); }
.set-info-pop ul { margin: 8px 0 0; padding-left: 18px; }
.set-info-pop li + li { margin-top: 3px; }
/* confirmed: the email you sign in with */
.bp-ok { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #e6f4ec; color: #1d7a4a; font: 700 10.5px/1.5 var(--ems-font-ui); letter-spacing: .03em; }
/* the pencil says "this opens an editor" before you hover */
.bp-fact.is-edit .bp-fact-pen, button.bp-name .bp-fact-pen { opacity: .5; transform: none; }

/* ── entrances (first paint only; BACKWARDS so hovers still lift) ────────── */
.set-rise { animation: set-rise .45s var(--set-rise) backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.set-rec-pane > * { animation: set-in .22s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes set-rise { from { opacity: .35; transform: translateY(8px); } }
@keyframes set-in { from { opacity: .4; transform: translateY(4px); } }
@keyframes set-grow { from { width: 0; } }

/* ── tablet: the rail sits on top, sticky, one row of pills ──────────────── */
@media (max-width: 1100px) {
  .set-routes { grid-template-columns: minmax(0, 1fr); }
  .set-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .set-shell { flex-direction: column; align-items: stretch; gap: 16px; }
  .set-rail {
    position: sticky; top: 0; z-index: 6; width: 100%; min-width: 0; flex: none; max-height: none; overflow: visible;
    padding: 12px; border-radius: 0 0 16px 16px; box-shadow: 0 6px 14px -12px rgba(14, 21, 71, .4);
  }
  .set-back { margin: 0 0 8px; padding: 0 4px; }
  .set-title, .set-rail-foot, .set-rail-title { display: none; }
  .set-nav { flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 4px; }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-link { flex: none; white-space: nowrap; padding: 8px 13px; border: 1px solid var(--set-line); background: #fff; }
  .set-link.active { border-color: transparent; }
  .set-link.active::before { display: none; }
  .set-u-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-two, .set-rec-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ── phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .set-sum-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .set-dlg .set-grid2 { grid-template-columns: minmax(0, 1fr); }
  .set-info-pop { left: auto; right: -40px; transform: translateY(4px); }
  .set-info:hover .set-info-pop, .set-info:focus .set-info-pop { transform: none; }
  body.ems-page .content { background: #f4f6fa; }
  /* The page scrolls on a phone: stick under the app's top bar (and the demo ribbon). */
  .set-rail { top: 64px; margin: -20px -16px 0; width: auto; border-width: 0 0 1px; border-radius: 0; }
  html.is-demo .set-rail { top: 94px; }
  /* No sliver of the page between the bars above and the stuck rail. */
  .set-rail::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; background: #fff; }
  .set-card { padding: 18px 16px; border-radius: 14px; }
  .set-sec + .set-sec { margin-top: 22px; }
  .set-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .set-head-act { justify-content: flex-start; }
  .bp { border-radius: 18px; }
  .bp-band { height: 92px; }
  .bp-id { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 16px; margin-top: -54px; }
  .set-avatar { width: 104px; height: 104px; font-size: 34px; }
  .bp-name h2 { font-size: 26px; }
  .bp-who, .bp-side { align-self: stretch; margin-top: 0; }
  .bp-side { align-items: flex-start; padding: 0; }
  .bp-tags { justify-content: flex-start; }
  .bp-facts { grid-template-columns: minmax(0, 1fr); }
  .bp-fact { padding: 12px 16px; }
  .bp-fact + .bp-fact { border-left: 0; border-top: 1px solid var(--set-sep); }
  .bp-fact-pen { opacity: 1; transform: none; }
  .bp-fact[data-full]::after { display: none; }
  .bp-foot { padding: 12px 16px; }
  .set-prof-top { grid-template-columns: auto minmax(0, 1fr); padding: 18px 16px 14px; }
  .set-prof-top .set-prof-meter { grid-column: 1 / -1; }
  .set-prof-n { text-align: left; }
  .set-prof-steps { justify-content: flex-start; }
  .set-prof-t h3 { font-size: 22px; }
  .set-prof-list { padding: 4px 16px 16px; grid-template-columns: minmax(0, 1fr); }
  .set-prof-foot { padding: 14px 16px; }
  .set-prof-acts { width: 100%; margin-left: 0; }
  .set-prof-acts > * { flex: 1 1 auto; }
  .set-u-cards { gap: 8px; }
  .set-u-cards .ems-scorecard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .set-u-cards .ems-scorecard-ic { width: 34px; height: 34px; }
  .set-u-cards .set-u-cf { display: none; }
  .set-u-row.is-head { display: none; }
  .set-u-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 12px; }
  .set-u-row:nth-child(2) { border-top: 0; }
  .set-u-who { grid-column: 1; grid-row: 1; }
  .set-u-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .set-u-role { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: center; gap: 8px; padding-left: 46px; }
  .set-u-detail, .set-u-when { display: none; }
  .set-panel-h { grid-template-columns: 34px minmax(0, 1fr); }
  .set-panel-h .set-saved { grid-column: 2; grid-row: 2; margin-top: 4px; justify-self: start; }
  .set-panel-h p { grid-column: 1 / -1; }
  .set-tools { grid-template-columns: minmax(0, 1fr); }
  .set-choices { grid-template-columns: minmax(0, 1fr); }
  .set-scope-list { grid-template-columns: minmax(0, 1fr); }
  .set-scope-list li:nth-child(2) { border-top: 1px solid var(--set-sep); }
  .set-routes li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .set-cx-feature { padding: 18px 16px; }
  .set-cxs { grid-template-columns: minmax(0, 1fr); }
  .set-help-grid { grid-template-columns: minmax(0, 1fr); }
  .set-grid2 { grid-template-columns: minmax(0, 1fr); }
  .set-grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .set-grid3 > :first-child { grid-column: 1 / -1; }
  .set-dlg .set-choices, .set-roles { grid-template-columns: minmax(0, 1fr); }
  .set-dlg .set-choice.is-plate { flex-direction: row; }
  .set-dlg-body { padding: 4px 16px 16px; }
  .set-dlg-foot { padding: 12px 16px 16px; }
  .set-dlg-foot > .set-btn { flex: 1 1 auto; }
  .modal.set-dlg.is-rec { width: calc(100vw - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  /* photo beside name + tags; role, contact and actions full width under them */
  .set-rec-top { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 14px 52px 6px 16px; }
  .set-rec-top > .set-u-av { grid-column: 1; grid-row: 1; }
  .set-rec-id { display: contents; }
  .set-rec-name { grid-column: 2; grid-row: 1; gap: 4px 8px; }
  .set-rec-meta, .set-rec-acts { grid-column: 1 / -1; gap: 4px 8px; }
  .set-u-av.is-lg, .set-dlg.is-rec .set-rec-top .set-u-av.is-lg { width: 52px; height: 52px; font-size: 18px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rk, transparent), 0 6px 16px rgba(22, 32, 99, .22); }
  .set-rec-acts { flex: 1 1 100%; justify-content: flex-start; }
  .set-rec-acts .set-btn { flex: 1 1 auto; justify-content: center; }
  .set-rec-id { gap: 6px; }
  .set-rec-id h2 { font-size: 21px; }
  .set-rec-line { font-size: 13px; }
  .set-rec-contact { gap: 5px; }
  .set-rec-contact > * { padding: 4px 8px; font-size: 12px; }
  .set-dlg.is-rec .set-dlg-body { padding: 12px 12px 16px; }
  .set-dlg.is-rec .set-dlg-foot { padding-left: 16px; padding-right: 16px; }
  .set-rec-tabs { padding: 0 8px; }
  .set-rec-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .set-cx-dlg-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .set-link.active::before, .set-u-row.is-flash, .set-rise, .set-rec-pane > *, .set-prof-bar i { animation: none; }
  .set-tool, .set-cx, .set-help-box, .set-u-cards .ems-scorecard { transition: none; }
  .set-tool:hover, .set-cx:hover, a.set-help-box:hover { transform: none; }
}

/* 11-08 regroup (settings.js sectionList): Profile = account card + About you;
   Your transition = two parts in one card, each with its own head and Edit;
   Privacy & data = policy, what the AI is told (open on click), your data. */
.set-prof-about { margin-top: 18px; }
.set-psec.is-multi .set-head { margin-bottom: 4px; }
.set-part + .set-part { margin-top: 22px; }
.set-part-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.set-part-h h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 15.5px/1.35 var(--ems-font-ui); color: var(--ems-navy-800); }
.bp-foot a { color: var(--ems-navy-600); font-weight: 600; }
.set-privacy .set-help-grid { grid-template-columns: minmax(0, 1fr); }
.set-ai-told { margin-top: 14px; border: 1px solid var(--set-line); border-radius: 12px; padding: 0 16px; background: #fbfcfe; }
.set-ai-told summary { display: flex; align-items: center; gap: 8px; padding: 13px 0; cursor: pointer; list-style: none; font: 600 14px/1.4 var(--ems-font-ui); color: var(--ems-navy-800); }
.set-ai-told summary::-webkit-details-marker { display: none; }
.set-ai-told summary::after { content: '+'; margin-left: auto; font-size: 18px; color: var(--set-faint); }
.set-ai-told[open] summary::after { content: "\2212"; }
.set-ai-told p, .set-ai-told ul { margin: 0 0 10px; font: 400 13.5px/1.55 var(--ems-font-body); color: var(--set-mute); }
.set-ai-told ul { padding-left: 18px; margin-bottom: 14px; }
.set-privacy .set-data { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--set-sep); }
.set-privacy .set-data-t { margin-top: 0; }
.set-privacy .set-data-t b { color: var(--set-ink); }

/* ═══ 11-09: colour, pictures, real documents (Tyler: "It's all just so bland.
   It's just the white and the subtle blue ... We need pictures. We need
   different colors to show the sections."). Every section carries --sec
   (settings.js TONE: the journey colours the tool pages use); the old
   --set-rv tokens follow it, so tiles, chips and the mentor card re-tint. ═══ */
.set-sec, .set-link {
  --sec-soft: color-mix(in srgb, var(--sec, #2a3890) 8%, #fff);
  --sec-ink: color-mix(in srgb, var(--sec, #2a3890) 80%, #000);
  --set-rv: var(--sec); --set-rv-ink: var(--sec-ink); --set-rv-soft: var(--sec-soft);
}
/* the rail: each line wears its section's colour */
.set-link-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sec-soft); color: var(--sec); transition: background-color .15s, color .15s; }
.set-link svg { opacity: 1; }
.set-link:hover { background: color-mix(in srgb, var(--sec) 6%, #fff); color: var(--sec-ink); }
.set-link.active { background: color-mix(in srgb, var(--sec) 10%, #fff); color: var(--sec-ink); }
.set-link.active .set-link-ic { background: var(--sec); color: #fff; }
.set-link.active::before { background: var(--sec); }

/* the header band: the section's colour, a topographic map's contour lines,
   and the section's icon large and faded as its picture */
.set-hero {
  position: relative; overflow: hidden; align-items: center; gap: 16px; margin: 0 0 18px; padding: 22px 26px; border-radius: 14px; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='220' viewBox='0 0 560 220' fill='none' stroke='white' stroke-opacity='.17' stroke-width='1.3'%3E%3Cpath d='M330 110c0-52 52-92 118-92s112 38 112 90-48 96-112 96-118-42-118-94z'/%3E%3Cpath d='M362 112c0-36 38-64 86-64s82 26 82 62-36 68-82 68-86-30-86-66z'/%3E%3Cpath d='M394 114c0-20 24-36 54-36s52 14 52 34-22 40-52 40-54-18-54-38z'/%3E%3Cpath d='M424 114c0-8 10-14 24-14s22 6 22 14-10 16-22 16-24-8-24-16z'/%3E%3Cpath d='M290 220c10-60 40-100 100-120s110 0 170-40'/%3E%3Cpath d='M250 220c14-80 60-130 130-150s120-10 180-60'/%3E%3Cpath d='M210 0c30 40 80 60 140 50s110-50 210-30'/%3E%3C/svg%3E") right -40px center / 560px 220px no-repeat,
    radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--sec) 45%, #fff) 0%, transparent 55%),
    linear-gradient(118deg, color-mix(in srgb, var(--sec) 72%, #000) 0%, var(--sec) 62%, color-mix(in srgb, var(--sec) 82%, #fff) 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .06);
}
.set-card > .set-hero:first-child { margin: -24px -26px 20px; border-radius: 15px 15px 0 0; }
.set-hero > * { position: relative; z-index: 1; }
.set-hero .set-head-t, .set-hero > div:not(.set-head-act) { flex: 1 1 auto; min-width: 0; }
.set-hero .set-head-ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 18px -10px rgba(0, 0, 0, .4); }
.set-hero h2 { color: #fff !important; }
.set-hero .set-note { margin: 0; color: rgba(255, 255, 255, .84); }
.set-hero .set-note a, .set-hero .set-note b { color: #fff; }
.set-hero-art { position: absolute !important; z-index: 0 !important; right: 150px; top: 50%; transform: translateY(-50%) rotate(-12deg); color: rgba(255, 255, 255, .1); pointer-events: none; }
.set-hero .set-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .38); color: #fff; box-shadow: none; }
.set-hero .set-btn:hover { background: #fff; color: var(--sec-ink); border-color: #fff; }
.set-hero .set-btn.is-primary { background: #fff; color: var(--sec-ink); }
.set-hero .set-info { color: rgba(255, 255, 255, .7); }
.set-hero .set-info:hover, .set-hero .set-info:focus-visible { color: #fff; background: rgba(255, 255, 255, .16); }
.set-hero .set-saved { color: rgba(255, 255, 255, .9); }
.set-psec.is-multi .set-hero { margin-bottom: 6px; }
.set-part-h h3 { color: var(--sec-ink); }
.set-part-h h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sec); }

/* tiles and chips in the section's colour */
.set-tile-ic { background: var(--sec-soft); color: var(--sec); box-shadow: none; }
.set-tile-ic.is-li { background: #fff; box-shadow: inset 0 0 0 1px var(--set-sep); }
.set-tile-ic.is-li img { width: 18px; height: 18px; border-radius: 3px; display: block; }
.set-tile.is-long { border-left-color: var(--sec); background: linear-gradient(90deg, var(--sec-soft), #fff 40%); }
.set-sum-chips em { background: var(--sec-soft); color: var(--sec-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sec) 16%, transparent); }
.set-li { display: inline-flex; align-items: center; gap: 6px; color: #0a66c2; font-weight: 700; text-decoration: none; }
.set-li:hover { text-decoration: underline; }
.set-mcard { background: linear-gradient(150deg, color-mix(in srgb, var(--sec) 12%, #fff), #fff 70%); }

/* ── Your résumés: a shelf of real pages ───────────────────────────────── */
.rz-shelf { margin-top: 16px; padding: 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--sec) 16%, var(--set-line)); background: linear-gradient(160deg, var(--sec-soft), #fff 65%); }
.rz-h { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.rz-h h3 { margin: 0; font: 800 17px/1.3 var(--ems-font-display); color: var(--set-ink); }
.rz-h p { margin: 3px 0 0; max-width: 62ch; font: 400 13px/1.5 var(--ems-font-body); color: var(--set-mute); }
.rz-inline-star { display: inline-grid; place-items: center; vertical-align: -2px; color: #d99a1e; }
.rz-inline-star svg { fill: #f5b83d; }
.rz-add { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 18px 14px; }
.rz-card { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.rz-thumb {
  position: relative; display: block; width: 150px; height: 194px; min-height: 0; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 1px #e1e5ee, 0 10px 22px -14px rgba(14, 21, 71, .5); transition: transform .22s var(--set-rise), box-shadow .22s ease;
}
.rz-thumb:hover, .rz-thumb:focus-visible { outline: none; transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sec) 40%, #fff), 0 20px 34px -16px rgba(14, 21, 71, .5); }
.rz-card.is-main .rz-thumb { box-shadow: 0 0 0 2.5px var(--sec), 0 16px 30px -14px color-mix(in srgb, var(--sec) 60%, transparent); }
.rz-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
/* the page is drawn at letter width (612px) and scaled to the card (150px) */
.rz-page { position: absolute; left: 0; top: 0; width: 612px; padding: 46px 48px; box-sizing: border-box; transform: scale(.2451); transform-origin: 0 0; text-align: left; }
.rz-page, .rz-paper { font: 400 12px/1.5 var(--ems-font-body); color: #1f2937; }
.rz-page h4, .rz-paper h4 { margin: 0 0 4px; font: 800 26px/1.15 var(--ems-font-display); letter-spacing: -.01em; text-align: center; color: #0e1547; }
.rz-page .rz-contact, .rz-paper .rz-contact { margin: 0 0 12px; text-align: center; color: #6b7280; }
.rz-page h5, .rz-paper h5 { margin: 14px 0 6px; padding-bottom: 3px; border-bottom: 1.5px solid var(--sec, #2a3890); font: 800 11.5px/1.3 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--sec-ink, #1b2569); }
.rz-page p, .rz-paper p { margin: 0 0 5px; }
.rz-page ul, .rz-paper ul { margin: 0 0 6px; padding-left: 16px; }
.rz-page li, .rz-paper li { margin: 0 0 3px; }
.rz-badge { position: absolute; z-index: 1; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--sec); color: #fff; font: 800 10px/1.4 var(--ems-font-ui); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.rz-badge svg { fill: currentColor; }
.rz-badge.is-tail { background: #fff; color: var(--sec-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sec) 30%, #fff), 0 4px 10px -6px rgba(0, 0, 0, .3); }
.rz-meta { display: flex; align-items: flex-start; gap: 4px; }
.rz-name { flex: 1; min-width: 0; }
.rz-name b { display: block; font: 700 13.5px/1.35 var(--ems-font-ui); color: var(--set-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-name small { display: block; font: 400 12px/1.35 var(--ems-font-ui); color: var(--set-mute); }
.rz-star { flex: none; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; margin: -4px -4px 0 0; border: 0; border-radius: 9px; background: none; color: #b9c0cf; cursor: pointer; box-shadow: none; transition: color .15s, background-color .15s, transform .2s; }
.rz-star:hover, .rz-star:focus-visible { outline: none; color: #d99a1e; background: #fff4dc; }
.rz-star:active { transform: scale(.88); }
.rz-star.is-on { color: #d99a1e; cursor: default; }
.rz-star.is-on svg { fill: #f5b83d; }
/* none yet: two blank pages as the picture */
.rz-shelf.is-empty { display: flex; align-items: center; gap: 24px; }
.rz-empty-art { position: relative; flex: none; width: 128px; height: 128px; }
.rz-ghost { position: absolute; left: 6px; top: 4px; display: flex; flex-direction: column; gap: 7px; width: 82px; height: 106px; padding: 14px 11px; box-sizing: border-box; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #e1e5ee, 0 12px 22px -14px rgba(14, 21, 71, .5); transform: rotate(-7deg); }
.rz-ghost.is-2 { left: 38px; top: 16px; transform: rotate(6deg); }
.rz-ghost i { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--sec) 16%, #eceff5); }
.rz-ghost i:first-child { width: 62%; height: 8px; margin: 0 auto 3px; background: var(--sec); opacity: .75; }
.rz-ghost i:nth-child(3) { width: 80%; }
.rz-empty-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rz-empty-t small { font: 700 11px/1.3 var(--ems-font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--set-mute); }
.rz-empty-t b { font: 800 19px/1.3 var(--ems-font-display); color: var(--set-ink); }
.rz-empty-t > span { max-width: 60ch; font: 400 13.5px/1.5 var(--ems-font-body); color: var(--set-mute); }
.rz-empty-t .rz-add { margin-top: 10px; }
/* a résumé opened: the page on a grey desk */
.modal.set-dlg.is-doc { max-width: 800px; }
.set-dlg.is-doc .set-dlg-body { padding: 22px; background: #eef1f6; --sec: #6d28d9; --sec-ink: #4c1d95; }
.rz-paper { max-width: 680px; margin: 0 auto; padding: 52px 56px; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 22px 44px -26px rgba(14, 21, 71, .4); font-size: 14px; }

/* ── Help & Privacy: picture cards ─────────────────────────────────────── */
.set-hcards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.set-hcard {
  display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--set-line); border-radius: 16px; overflow: hidden; background: #fff;
  font: inherit; text-align: left; color: inherit; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(14, 21, 71, .04);
  transition: transform .24s var(--set-rise), box-shadow .24s ease, border-color .2s ease;
}
.set-hcard:hover, .set-hcard:focus-visible { outline: none; transform: translateY(-3px); color: inherit; background: #fff; border-color: color-mix(in srgb, var(--c) 32%, #fff); box-shadow: 0 20px 36px -22px color-mix(in srgb, var(--c) 75%, transparent); }
.set-hcard-art { position: relative; display: grid; place-items: center; height: 116px; overflow: hidden; background: radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--c) 18%, #fff), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--c) 9%, #fff), color-mix(in srgb, var(--c) 26%, #fff)); }
.set-hcard-blob { position: absolute; top: -44px; right: -34px; width: 124px; height: 124px; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); transition: transform .5s var(--set-rise); }
.set-hcard-blob.is-2 { top: auto; right: auto; bottom: -30px; left: 20px; width: 72px; height: 72px; background: color-mix(in srgb, var(--c) 13%, transparent); }
.set-hcard:hover .set-hcard-blob { transform: scale(1.12); }
.set-hcard-disc { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--c); color: #fff; transform: rotate(-6deg); box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--c) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .3s var(--set-rise); }
.set-hcard:hover .set-hcard-disc { transform: rotate(0) scale(1.06); }
.set-hcard-faces { position: relative; display: flex; }
.set-hcard-faces span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c); color: #fff; font: 800 18px/1 var(--ems-font-display); box-shadow: 0 0 0 4px #fff, 0 10px 20px -10px rgba(14, 21, 71, .5); }
.set-hcard-faces span + span { margin-left: -12px; background: color-mix(in srgb, var(--c) 72%, #000); }
.set-hcard-logo { position: relative; max-width: 72%; max-height: 66px; object-fit: contain; }
.set-hcard-b { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.set-hcard-b b { font: 700 15.5px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.set-hcard-b small { flex: 1; font: 400 13px/1.5 var(--ems-font-body); color: var(--set-mute); }
.set-hcard-b em { margin-top: 8px; font: 700 13px/1.2 var(--ems-font-ui); font-style: normal; color: var(--c); }
.set-hcard-b em i { display: inline-block; font-style: normal; transition: transform .2s var(--set-rise); }
.set-hcard:hover .set-hcard-b em i { transform: translateX(4px); }
.set-help .set-crisis, .set-privacy .set-ai-told { margin-top: 16px; }

/* Erase: still there (the privacy policy promises it), never a headline. */
.set-erase { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--set-sep); font: 400 13px/1.5 var(--ems-font-body); color: var(--set-faint); }
.set-erase-btn { display: inline; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; font: inherit; color: var(--set-mute); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.set-erase-btn:hover, .set-erase-btn:focus-visible { outline: none; color: var(--ems-red-600); }
.set-erase-type { margin-top: 14px; max-width: 280px; }
.set-erase-type input { font: 700 15px/1 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 1100px) { .set-hcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .set-card > .set-hero:first-child { margin: -18px -16px 16px; border-radius: 13px 13px 0 0; }
  .set-hero { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 18px 16px; gap: 12px; }
  .set-hero .set-head-t { flex: 1 1 60%; }
  .set-hero .set-head-act { flex: none; }
  .set-hero-art { right: -20px; }
  .set-hcards { grid-template-columns: minmax(0, 1fr); }
  .set-hcard { flex-direction: row; }
  .set-hcard-art { flex: none; width: 96px; height: auto; min-height: 96px; }
  .set-hcard-disc { width: 48px; height: 48px; border-radius: 15px; }
  .set-hcard-faces span { width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 3px #fff; }
  .set-hcard-faces span + span { margin-left: -10px; }
  .rz-shelf { padding: 14px; }
  .rz-shelf.is-empty { flex-direction: column; align-items: flex-start; }
  .rz-h .rz-add { width: 100%; }
  .rz-paper { padding: 28px 22px; font-size: 13px; }
  .set-dlg.is-doc .set-dlg-body { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rz-thumb, .set-hcard, .set-hcard-disc, .set-hcard-blob { transition: none; }
  .rz-thumb:hover, .set-hcard:hover { transform: none; }
}
/* Your transition › Your starting steps: the frozen list, each one a Revisit (ems-guided.js) */
.set-start-when { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 600 13.5px/1.4 var(--ems-font-ui); color: var(--ems-good, #1a7f37); }
.set-start { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.set-start-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--ems-line); border-radius: 12px; background: #fff; }
.set-start-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ems-navy-50); color: var(--ems-navy-600); font: 700 12.5px/1 var(--ems-font-ui); }
.set-start-row.is-done .set-start-n { background: var(--ems-good, #1a7f37); color: #fff; }
.set-start-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-start-t b { font: 600 14.5px/1.3 var(--ems-font-ui); color: var(--ems-ink); }
.set-start-t small { font: 500 12.5px/1.3 var(--ems-font-ui); color: var(--ems-mute); }

/* ── Mentor roster + the record's new parts (Tyler 11-15: "treat them like the
   CRM"): the roster is the Users list, staff only, three columns; a mentor's
   record lists who they mentor; History / Activity is a quiet feed; the
   mentor picker sits inside the member's record, not on a row tray. ──────── */
.set-u-table.is-staff .set-u-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.set-rec-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.set-rec-person { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; padding: 8px 10px; border: 1px solid #eceff6; border-radius: 12px; background: #fdfdff; text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: none; transition: border-color .15s, background-color .15s; }
.set-rec-person:hover { border-color: #c9d0e6; background: #f5f7fc; }
.set-rec-person:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.set-rec-person > span:last-child { min-width: 0; }
.set-rec-person b { display: block; font: 700 13.5px/1.3 var(--ems-font-ui); color: var(--set-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-rec-person small { display: block; font: 400 12px/1.35 var(--ems-font-ui); color: var(--set-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-rec-flag { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #eef0f5; color: #5b6478; font: 700 11.5px/1.5 var(--ems-font-ui); font-style: normal; }
.set-rec-flag.is-hot { background: var(--ems-red-50); color: var(--ems-red-600); }
.set-rec-match { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.set-rec-match select { flex: 1 1 260px; min-width: 0; }
.set-rec-match select.is-nudge { animation: set-nudge .4s ease 1; border-color: var(--ems-red-600); }
@keyframes set-nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.set-rec-card .set-link-btn { margin-top: 10px; padding: 2px 4px; }
.set-rec-feed { list-style: none; margin: 0; padding: 4px 18px; border: 1px solid #e4e8f1; border-radius: 14px; background: #fff; }
.set-rec-feed li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f2f8; }
.set-rec-feed li:first-child { border-top: 0; }
.set-rec-feed li > span:nth-child(2) { flex: 1; min-width: 0; }
.set-rec-feed b { display: block; font: 700 14px/1.4 var(--ems-font-ui); color: var(--set-ink); overflow-wrap: anywhere; }
.set-rec-feed small { display: block; margin-top: 2px; font: 400 12.5px/1.45 var(--ems-font-body); color: var(--set-mute); overflow-wrap: anywhere; }
.set-rec-feed time { flex: none; padding-top: 2px; font: 600 12px/1.4 var(--ems-font-ui); color: var(--set-faint); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .set-rec-match select.is-nudge { animation: none; } }
.set-rec-match .ss-btn { flex: 1 1 300px; min-width: 0; }

/* ── Program = tabs of settings (11-15, second pass) ──────────────────────
   Tyler: "drop-downs with selections ... tabs, just like how normal settings
   things are ... hover over a question mark." Each row: the setting's name
   and its ?, then its control (a drop-down or a switch) that saves itself. */
.pset-tabs { position: relative; margin: 16px -26px 0; padding: 0 16px; border-bottom: 1px solid var(--set-line); }
.pset-pane { padding-top: 18px; animation: pset-in .22s var(--set-rise) both; }
@keyframes pset-in { from { opacity: 0; transform: translateY(4px); } }
.pset-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--set-line); border-radius: 12px; }
.pset-list + .pset-list, .pset-list + .pset-note { margin-top: 14px; }
.pset-row { padding: 12px 16px; transition: background-color .15s; }
.pset-row:first-child { border-radius: 12px 12px 0 0; }
.pset-row:last-child { border-radius: 0 0 12px 12px; }
.pset-row:only-child { border-radius: 12px; }
.pset-row + .pset-row { border-top: 1px solid var(--set-sep); }
.pset-row.is-saved { animation: set-prow-saved 1.6s ease; }
@keyframes set-prow-saved { 0% { background: #e8f6ee; } 100% { background: transparent; } }
.pset-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.pset-t, .pset-tool-t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 14px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.pset-tool-t { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--ems-ink-2); }
.pset-c { flex: none; display: flex; align-items: center; }
.pset-sel { min-width: 230px; max-width: 100%; height: 36px; padding: 0 34px 0 12px; border: 1px solid #d5dbe8; border-radius: 9px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232a3890' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; font: 600 13.5px/1 var(--ems-font-ui); color: var(--ems-navy-700); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pset-sel:hover:not(:disabled) { border-color: #aab5d6; }
.pset-sel:focus-visible { outline: none; border-color: var(--ems-navy-500); box-shadow: 0 0 0 3px rgba(42, 56, 144, .18); }
.pset-sel:disabled { opacity: .55; cursor: not-allowed; }
.pset-under { margin-top: 10px; }
.pset-under .set-plist, .pset-under .set-scope-list { margin: 0; }
.pset-email { display: grid; gap: 6px; max-width: 360px; margin: 0; }
.pset-email span { font: 600 12.5px/1.3 var(--ems-font-ui); color: var(--set-mute); }
.pset-err { color: var(--ems-red-600); font: 500 12.5px/1.3 var(--ems-font-ui); }
.pset-err[hidden] { display: none; }
.pset-note { margin: 14px 0 10px; font: 400 13px/1.5 var(--ems-font-body); color: var(--set-mute); }
.pset-kick { display: flex; align-items: center; gap: 6px; margin-top: 22px; }
/* the ? and its tip */
.pset-q { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: #e9edf6; color: var(--ems-navy-500); font: 800 11px/1 var(--ems-font-ui); cursor: help; transition: background-color .15s, color .15s; text-transform: none; letter-spacing: 0; }
.pset-q:hover, .pset-q:focus-visible { background: var(--ems-navy-500); color: #fff; outline: none; }
.pset-tip { position: fixed; z-index: 10000; max-width: 280px; padding: 9px 12px; border-radius: 10px; background: #14193f; color: #fff; font: 500 12.5px/1.45 var(--ems-font-ui); box-shadow: 0 10px 28px rgba(14, 21, 71, .28); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .14s ease, transform .14s ease; }
.pset-tip.is-on { opacity: 1; transform: none; }
/* the Tools tab: each journey section a short list of switches */
.pset-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px 22px; }
.pset-tg { min-width: 0; border: 1px solid var(--set-line); border-radius: 12px; padding: 10px 14px 6px; }
.pset-tg-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; font: 800 11px/1.3 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ems-navy-500); }
.pset-tg-h .set-link-btn { text-transform: none; letter-spacing: 0; font-size: 12px; }
.pset-tg ul { list-style: none; margin: 0; padding: 0; }
.pset-tg li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--set-sep); }
.set-switch.is-nudge { animation: set-nudge .4s ease 1; }
.set-prog .set-stamp { margin-top: 16px; }
@media (max-width: 760px) {
  .pset-tabs { margin-left: -16px; margin-right: -16px; }
  .pset-line { flex-wrap: wrap; }
  .pset-c, .pset-sel { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .pset-pane, .pset-row.is-saved, .set-switch.is-nudge { animation: none; } }

/* The Tools pop-up: each journey section a short list of switches. */
.set-ptools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 22px; }
.set-ptg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.set-ptg-h b { font: 800 11px/1.3 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ems-navy-500); }
.set-ptg-h .set-link-btn { font-size: 12px; }
.set-ptg ul { list-style: none; margin: 0; padding: 0; }
.set-ptg li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--set-sep); }
.set-ptg li:first-child { border-top: 0; }
.set-ptool-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--ems-navy-50); color: var(--ems-navy-500); }
.set-ptool-t { flex: 1; min-width: 0; font: 500 13.5px/1.3 var(--ems-font-ui); color: var(--set-ink); }
.set-num small { display: block; margin-top: 4px; }
.set-dlg .set-scope-list { margin-top: 12px; }
.set-dlg .set-routes { margin: 0; }

/* Privacy & data: one card per document (11-15). */
.set-privacy .set-hcards { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* A new photo fades in on the account card (topbar.css owns the keyframes). */
.set-avatar.is-fresh img { animation: ems-face-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.bp-name.is-empty h2 { color: var(--set-mute); }

/* Account type + admin access (settings-users.js, 11-15) */
.set-roleopt:disabled { cursor: default; }
.set-roleopt:disabled:not([aria-checked="true"]) { opacity: .62; }
.set-roleopt:disabled:hover { border-color: #d7dceb; }
.set-rec-card .set-acts { margin-top: 12px; }
.set-rec-more { margin-top: 12px; }
.set-reach { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.set-reach li { position: relative; padding-left: 26px; font: 400 13.5px/1.5 var(--ems-font-body); color: var(--ems-ink-2); }
.set-reach li::before { content: ''; position: absolute; left: 2px; top: 4px; width: 14px; height: 14px; border-radius: 50%; }
.set-reach li.is-yes::before { background: #1f8a55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.set-reach li.is-no { color: var(--ems-mute); }
.set-reach li.is-no::before { background: #e2e6ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 8h6' fill='none' stroke='%236b7389' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.set-reauth { margin-top: 14px; text-align: left; }
.set-reauth input, .ems-mfa-code input { max-width: 180px; font: 600 20px/1.2 var(--ems-font-ui); letter-spacing: .28em; }
.ems-mfa-body { display: grid; gap: 12px; }
.ems-mfa-lede, .ems-mfa-step { margin: 0; font: 400 14px/1.55 var(--ems-font-body); color: var(--ems-ink-2); }
.ems-mfa-qr { justify-self: center; display: grid; place-items: center; width: 200px; min-height: 200px; padding: 8px; border: 1px solid #e4e8f1; border-radius: 14px; background: #fff; }
.ems-mfa-qr .wt-skeleton { width: 184px; height: 184px; }
.ems-mfa-key code { letter-spacing: .06em; word-break: break-all; }
.set-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.set-kind { padding: 5px 11px; border-radius: 999px; border: 1px solid #e3e7f0; font: 600 12.5px/1.2 var(--ems-font-ui); color: var(--ems-mute); background: #fff; }
.set-kind.is-on { border-color: var(--ems-navy-500); background: var(--ems-navy-50); color: var(--ems-navy-600); }
.set-check { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 500 13.5px/1.4 var(--ems-font-body); color: var(--ems-ink-2); cursor: pointer; }

/* ── Notifications (settings.js notificationsSection) ───────────────────── */
.set-ntf-master { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--set-line); border-radius: 12px; background: #fff; }
.set-ntf-group { margin: 0 0 16px; transition: opacity .2s; }
.set-ntf-group.is-dim { opacity: .5; }
.set-ntf-h { margin: 0 0 8px; font: 800 11px/1.3 var(--ems-font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--set-mute); }
.set-ntf .set-plist li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--set-sep); }
.set-ntf .set-plist li:first-child { border-top: 0; }
.set-ntf-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-ntf-t b { font: 700 14.5px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.set-ntf-t small { font: 400 13px/1.45 var(--ems-font-body); color: var(--ems-mute); }
.set-ntf-status { min-height: 18px; margin: 4px 0 0; font: 500 13px/1.4 var(--ems-font-ui); color: var(--set-mute); }
.set-ntf-status.is-bad { color: #B91C1C; }

/* ── a person's profile, opened by the people who work with them (ems-people.js) ──
   The record's look (.set-rec-*); these are the profile's own pieces. */
.pp-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid #e4e8f1; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(14, 21, 71, .04); overflow: hidden; }
.pp-now-c { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 18px; border-left: 1px solid #eef1f7; }
.pp-now-c:first-child { border-left: 0; }
.pp-now-k { font: 800 11px/1.3 var(--ems-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--set-mute); }
.pp-now-v { font: 700 16px/1.3 var(--ems-font-ui); color: var(--set-ink); overflow-wrap: anywhere; }
.pp-now-v.is-quiet { color: #8c95ab; font-weight: 600; }
.pp-now-v.is-hot { color: var(--ems-red-600); }
.pp-now-v.is-good { color: var(--ems-good); }
.pp-now-s { font: 500 12.5px/1.4 var(--ems-font-ui); color: var(--set-mute); }
.pp-sub { margin: 12px 0 5px; font: 700 12.5px/1.3 var(--ems-font-ui); color: var(--set-mute); }
.pp-sub:first-child { margin-top: 0; }
.pp-p { margin: 0; font: 400 14px/1.55 var(--ems-font-body); color: var(--ems-ink-2); white-space: pre-line; }
.pp-bio { margin: 0; font: 400 15px/1.65 var(--ems-font-body); color: var(--ems-ink-2); white-space: pre-line; }
.pp-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pp-facts li { display: flex; gap: 9px; align-items: flex-start; font: 600 14px/1.45 var(--ems-font-ui); color: var(--set-ink); }
.pp-facts svg { flex: none; margin-top: 2px; color: var(--ems-navy-500); }
.pp-skel { display: grid; gap: 12px; }
.pp-skel i { display: block; height: 84px; border-radius: 14px; background: linear-gradient(90deg, #eef1f7 0%, #f6f8fc 50%, #eef1f7 100%); background-size: 200% 100%; animation: pp-shim 1.2s linear infinite; }
.pp-skel i:first-child { height: 74px; }
@keyframes pp-shim { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pp-skel i { animation: none; } }
@media (max-width: 640px) {
  .pp-now { grid-template-columns: 1fr 1fr; }
  .pp-now-c { border-left: 0; border-top: 1px solid #eef1f7; }
  .pp-now-c:nth-child(-n+2) { border-top: 0; }
  .pp-now-c:nth-child(even) { border-left: 1px solid #eef1f7; }
}
.modal.set-dlg.is-rec.pp-dlg { height: auto; }
.pp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pp-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.pp-link img { width: 16px; height: 16px; border-radius: 3px; }
/* their work, the things themselves (Tyler 11-16): résumés that open, every
   job with the step it is on, member + mentor counted */
.pp-docs, .pp-jobs { list-style: none; margin: 0; padding: 0; display: grid; }
.pp-doc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; padding: 9px 10px; margin: 0 -10px; width: calc(100% + 20px); border: 0; border-radius: 10px; background: none; box-shadow: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color .15s; }
.pp-doc:hover { background: #f5f7fc; }
.pp-doc:focus-visible { outline: none; box-shadow: var(--ems-focus); }
.pp-docs li + li .pp-doc { border-top: 1px solid #f0f2f8; border-radius: 0; }
.pp-docs li + li .pp-doc:hover { border-radius: 10px; }
.pp-doc-ic { flex: none; display: grid; place-items: center; width: 34px; height: 42px; border-radius: 6px; background: #fff; border: 1px solid #dfe4ef; box-shadow: 0 2px 6px rgba(14, 21, 71, .08); color: var(--rk, var(--ems-navy-500)); }
.pp-doc-t { flex: 1; min-width: 0; }
.pp-doc-t b { display: flex; align-items: center; gap: 8px; font: 700 14px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.pp-doc-t small { display: block; margin-top: 2px; font: 500 12.5px/1.4 var(--ems-font-ui); color: var(--set-mute); }
.pp-doc-go { flex: none; display: inline-flex; align-items: center; gap: 4px; font: 700 12.5px/1 var(--ems-font-ui); color: var(--ems-navy-500); }
.pp-tag { padding: 2px 8px; border-radius: 999px; font: 700 11px/1.4 var(--ems-font-ui); font-style: normal; }
.pp-tag.is-main { background: var(--ems-gold-100); color: #7a5512; }
.pp-jobs li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #f0f2f8; }
.pp-jobs li:first-child { border-top: 0; padding-top: 2px; }
.pp-job-t b { display: block; font: 700 14px/1.35 var(--ems-font-ui); color: var(--set-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-job-t small { display: block; font: 500 12.5px/1.4 var(--ems-font-ui); color: var(--set-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-job-t a { display: block; text-decoration: none; }
.pp-job-t a:hover b { color: var(--ems-navy-500); text-decoration: underline; }
.pp-jobs time { font: 600 12px/1.3 var(--ems-font-ui); color: var(--set-faint); text-align: right; }
.pp-stage { padding: 3px 10px; border-radius: 999px; font: 700 12px/1.4 var(--ems-font-ui); white-space: nowrap; }
.pp-stage.is-saved { background: #eef0f5; color: #5b6478; }
.pp-stage.is-applied { background: var(--ems-navy-50); color: var(--ems-navy-600); }
.pp-stage.is-int { background: #fff4dc; color: #8a5a00; }
.pp-stage.is-offer { background: #e3f5ea; color: #1d7a4a; }
.pp-stage.is-hired { background: #1d7a4a; color: #fff; }
.pp-stage.is-closed { background: #f4f5f8; color: #9aa1b2; text-decoration: line-through; }
.pp-fine { display: block; margin: 8px 0 0; font: 400 12.5px/1.45 var(--ems-font-body); color: var(--set-mute); }
dd .pp-fine { margin-top: 2px; font-family: var(--ems-font-ui); font-weight: 500; }
.pp-flag { color: var(--ems-red-600); font-weight: 700; }
.pp-start { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.pp-start li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 40px; position: relative; border: 1px dashed #d7dceb; border-radius: 12px; font: 700 13.5px/1.35 var(--ems-font-ui); color: var(--set-ink); }
.pp-start li > span { position: absolute; left: 12px; top: 11px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c9d0df; color: #fff; }
.pp-start li small { font: 600 12px/1.3 var(--ems-font-ui); color: #a3abbf; }
.pp-start li.is-done { border-style: solid; border-color: #d3ecdc; background: #f3fbf6; }
.pp-start li.is-done > span { background: #1d7a4a; border-color: #1d7a4a; }
.pp-start li.is-done small { color: #1d7a4a; }
@media (max-width: 640px) { .pp-jobs li { grid-template-columns: minmax(0, 1fr) auto; } .pp-jobs time { display: none; } }
