/* ══ YOUR DETAILS, THE DIALOG BEHIND "EDIT" ═════════════════════════  rp198, 21 Oct 2026 ══
   Sir: "improve this edits button pop-up". The board, the pin, the slip and the paper stay (the family's own
   dialog, hyyryn-pinmodal.css); what is on the paper is new: the card as others see you at its head, the two names
   side by side, where you work as a fact with its way to Settings, a note with its mark and no stripe down its side
   (Mason 62.1), and a foot with a status, Cancel and Save changes. Scoped to `.pjm.mem`; it wins on count. */

html body .pjm.mem .pjm-board { max-width: 560px; }
html body .pjm.mem .pjm-step { margin-top: 2px; }
html body .pjm.mem .pjm-body { padding-top: 16px; }

/* 1. the card as others see you */
html body .pjm.mem .mem-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; column-gap: 14px;
  margin: 0 0 22px; padding: 14px 16px;
  background: #FFFFFF; border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(10,22,40,.10), 0 1px 2px rgba(10,22,40,.06), 0 10px 22px -16px rgba(10,22,40,.4);
}
html body .pjm.mem .mem-face { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #F3EFE4; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 4px rgba(212,169,67,.45); }
html body .pjm.mem .mem-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .pjm.mem .mem-card-t { display: flex; flex-direction: column; min-width: 0; }
html body .pjm.mem .mem-card-t b {
  font-family: var(--serif-display); font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--navy, #0A1628);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html body .pjm.mem .mem-card-t span { margin-top: 3px; font-family: var(--sans); font-size: 12px; line-height: 1.4; color: var(--muted, #636976); }
html body .pjm.mem .mem-card-t span:empty { display: none; }
html body .pjm.mem .mem-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
html body .pjm.mem .mem-photo {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy, #0A1628);
  background: #FAF8F3; box-shadow: inset 0 0 0 1px rgba(10,22,40,.22);
  transition: background 160ms ease, box-shadow 160ms ease;
}
html body .pjm.mem .mem-photo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .pjm.mem .mem-photo:hover { background: #F3EFE4; box-shadow: inset 0 0 0 1px rgba(10,22,40,.4); }
html body .pjm.mem .mem-file:focus-visible + .mem-photo { outline: 2px solid var(--navy, #0A1628); outline-offset: 3px; }

/* 2. the two names, side by side */
html body .pjm.mem .mem-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
html body .pjm.mem .mem-names .pjm-f { margin-bottom: 0; }
html body .pjm.mem .mem-hint { margin: 9px 0 22px; }
html body .pjm.mem .mem-opt { margin-left: 6px; font-weight: 400; letter-spacing: .08em; text-transform: none; color: var(--muted, #636976); }
html body .pjm.mem .pjm-f input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #9B2C2C; }

/* 3. where you work, a fact, changed in Settings */
html body .pjm.mem .mem-where {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  margin: 2px 0 16px; padding: 12px 14px; border-radius: 14px; background: #F5F2EA; box-shadow: inset 0 0 0 1px rgba(10,22,40,.07);
}
html body .pjm.mem .mem-where-i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #1C2A44, #0A1628 70%); }
html body .pjm.mem .mem-where-i svg { width: 16px; height: 16px; fill: none; stroke: #E2BE6A; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html body .pjm.mem .mem-where-t { display: flex; flex-direction: column; min-width: 0; }
html body .pjm.mem .mem-where-k { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted, #636976); }
html body .pjm.mem .mem-where-v { margin-top: 2px; font-family: var(--serif); font-size: 15px; line-height: 1.35; color: var(--ink, #1B2638); }
html body .pjm.mem .mem-where-a {
  font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--navy, #0A1628); text-decoration: none; padding: 3px 0; border-bottom: 1px solid rgba(180,132,42,.7);
}
html body .pjm.mem .mem-where-a:is(:hover, :focus-visible) { color: #83632C; border-color: #83632C; }

/* 4. the note: a mark, not a stripe */
html body .pjm.mem .mem-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 4px;
  font-family: var(--serif); font-size: 13px; line-height: 1.5; color: var(--muted, #636976);
}
html body .pjm.mem .mem-note svg { flex: none; width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: #B4842A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body .pjm.mem .mem-note a { color: var(--navy, #0A1628); }

/* 5. the foot: what happened, Cancel, Save changes */
html body .pjm.mem .mem-foot { gap: 10px; }
html body .pjm.mem .mem-status { flex: 1 1 auto; margin: 0; min-height: 1em; font-family: var(--sans); font-size: 12px; line-height: 1.4; color: #0F5A4F; }
html body .pjm.mem .mem-status.is-bad { color: #9B2C2C; }
html body .pjm.mem .mem-foot .btn { flex: none; white-space: nowrap; }
html body .pjm.mem .mem-foot .mem-save {
  color: #FAF8F3; background: linear-gradient(180deg, #1C2A44, #0A1628); border-color: transparent;
  box-shadow: 0 1px 2px rgba(10,22,40,.25), 0 10px 20px -12px rgba(10,22,40,.7);
}
html body .pjm.mem .mem-foot .mem-save:is(:hover, :focus-visible) { color: #FAF8F3; background: linear-gradient(180deg, #24355A, #12203A); }
html body .pjm.mem .mem-save[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 560px) {
  html body .pjm.mem .mem-card { grid-template-columns: 48px minmax(0, 1fr); row-gap: 12px; }
  html body .pjm.mem .mem-face { width: 48px; height: 48px; }
  html body .pjm.mem .mem-photo { grid-column: 1 / -1; justify-content: center; }
  html body .pjm.mem .mem-names { grid-template-columns: minmax(0, 1fr); }
  html body .pjm.mem .mem-names .pjm-f + .pjm-f { margin-top: 16px; }
  html body .pjm.mem .mem-where { grid-template-columns: 34px minmax(0, 1fr); row-gap: 8px; }
  html body .pjm.mem .mem-where-a { grid-column: 2; justify-self: start; }
  html body .pjm.mem .mem-foot { flex-wrap: wrap; }
  html body .pjm.mem .mem-status { flex-basis: 100%; }
  html body .pjm.mem .mem-foot .btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
}
