/* Grow Admin · per-person Admin access editor (shared/ap-staff-access.js). Loaded by the Staff page only.
   DS tokens only (light + dark): --sf, --bg, --line, --ink-*, --accent. */
.ap-acc { display: grid; gap: 8px; margin: 12px 0; }
.ap-acc-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--sf); }
.ap-acc-row.is-changed { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ap-acc-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-acc-h > b { flex: 1 1 140px; min-width: 0; color: var(--ink); }
.ap-acc-seg { flex: 0 0 auto; }
.ap-acc-seg button[disabled] { opacity: .45; cursor: not-allowed; }
.ap-acc-acts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.ap-acc-acts[hidden] { display: none; }
.ap-acc-act { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; color: var(--ink-2); }
.ap-acc-act input { width: 18px; height: 18px; flex: 0 0 auto; }
.ap-acc-chg, .ap-acc-tag { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 9px; border: 1px solid var(--accent); color: var(--ink); background: var(--bg); white-space: nowrap; font-weight: 500; }
.ap-acc-tag { margin-left: 6px; vertical-align: 1px; }
.ap-acc-sum { border-radius: 12px; padding: 10px 12px; background: var(--bg); color: var(--ink); }
.ap-acc-sum ul { margin: 6px 0 0 18px; padding: 0; color: var(--ink-2); }
.ap-acc-sum svg { width: 16px; height: 16px; vertical-align: -3px; }
.ap-acc-histbox { margin-top: 12px; }
.ap-acc-histbox summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.ap-acc-hist { margin: 8px 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ap-acc-why { font-style: italic; color: var(--ink-2); }
.ap-inv-link { display: flex; gap: 8px; align-items: center; }
.ap-inv-link input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
@media (max-width: 640px) {
  .ap-acc-h { align-items: stretch; }
  .ap-acc-h > b { flex-basis: 100%; }
  .ap-acc-seg { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .ap-acc-acts { grid-template-columns: 1fr; }
}
/* Checklist model (Kenny 2026-11-09 13:35 ET): the Full access switch on top; with it on the sections read as all-on */
.ap-acc-full { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.ap-acc-full.is-on { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.ap-acc-full input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.ap-acc-full b { display: block; color: var(--ink); }
.ap-acc-full small { display: block; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.ap-acc-list { display: grid; gap: 8px; }
.ap-acc.is-full .ap-acc-list { opacity: .55; }
.ap-acc-now { margin-top: 6px; color: var(--ink-2); }
.ap-acc-start { margin: 0 0 8px; }
.ap-acc-desc { color: var(--ink-2); }
.ap-acc-mail small { display: block; }
.ap-acc-hist .btn { margin-top: 4px; }
.ap-acc-shared { margin: 6px 0 0; }
/* Who can see what: an email under two same-name people wraps inside its column (long addresses never run into the next) */
.ap-mx-h small.ap-mx-email { display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-all; font-weight: 500; }

/* section-by-section Access dialog: each section collapsed, open it for the individual actions (Kenny 2026-11-11) */
.ap-acc-fold { padding: 0; }
.ap-acc-fold > summary { list-style: none; cursor: pointer; padding: 10px 12px; }
.ap-acc-fold > summary::-webkit-details-marker { display: none; }
.ap-acc-chev { width: 16px; flex: 0 0 16px; display: inline-flex; color: var(--ink-2); transition: transform .15s; }
.ap-acc-chev svg { width: 16px; height: 16px; }
.ap-acc-fold[open] .ap-acc-chev { transform: rotate(90deg); }
.ap-acc-more { padding: 0 12px 10px 38px; }
.ap-acc-more .ap-acc-acts { margin-top: 0; }

/* Kenny 2026-11-11: no Edit button where Edit isn't possible. The empty slot keeps Hidden / View lined up with the rows
   that have Edit; a section whose edits live elsewhere says so under its name (Marketplace: "Edits come from Content & product."). */
.ap-acc-noedit { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; font: 600 13.5px/1 var(--font); visibility: hidden; pointer-events: none; }
.ap-acc-h > b .ap-acc-sub { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
/* a manager without Full access: what they can't give is greyed out with its reason (title) */
.ap-acc-full.is-locked { cursor: not-allowed; opacity: .75; }
.ap-acc-act.is-locked { cursor: not-allowed; opacity: .6; }
.ap-acc-lim { display: flex; gap: 8px; align-items: center; margin: 0; }
.ap-acc-lim svg { width: 16px; height: 16px; flex: 0 0 auto; }
