/* Anggota on the settings kit (scripts/members.js): Linear's Members table and Notion's People, in the kit's type and
   palette. A row a person; the Role a native list; Business access a quiet list button; ⋯ at the row's end. Its
   dialogs are the mockup's frame with the kit's fields, Vercel's role choices and its choice of Businesses. */
.st-members { table-layout: fixed; }
.st-members col, .st-members th:nth-child(1) { width: auto; }
.st-members th:nth-child(2) { width: 180px; }
.st-members th:nth-child(3) { width: 190px; }
.st-members th:nth-child(4) { width: 56px; }
.st-members td { height: 60px; }
.st-members .st-group-row td { height: auto; }
.st-members .st-cell-who { min-width: 0; }
.st-members .st-who { min-width: 0; }
.st-members .st-who > span:last-child { min-width: 0; }
.st-members .st-who strong .st-pill { flex: none; }
.st-members .st-select select { max-width: 160px; }
.st-role, .st-access-text { color: var(--st-ink); font-size: 13px; }
.st-access-text { color: var(--st-muted); }
.st-members .st-tail td { padding: 0; }
.st-members .st-tail .more-marker { height: 1px; }
.st-members .st-member.is-invite .st-avatar { background: #f2f4f7; color: var(--st-muted); }

/* Business access as the button that opens its choice: the words and the list's chevron, a wash on the pointer
   (Notion's "1 teamspace ▾"). */
.st-access { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 32px; margin-left: -8px; padding: 0 6px 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--st-ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--m-hover) ease, border-color var(--m-hover) ease; }
.st-access > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-access .icon { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--st-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-access:hover, .st-access[aria-expanded="true"] { border-color: var(--st-line); background: var(--st-soft); }
.st-access:focus-visible { outline: 3px solid rgba(47, 98, 164, .3); outline-offset: 2px; }

/* The dialogs: the kit's fields; a choice a row with its radio, its name and its one line (Vercel's role list). */
.lk-dialog .st-dialog-form { display: grid; gap: 18px; }
.lk-dialog .st-fieldset { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.lk-dialog .st-fieldset > legend { margin-bottom: 6px; padding: 0; color: #172033; font-size: 12.5px; font-weight: 600; }
.lk-dialog .st-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid #e4e8ef; border-radius: 9px; background: #fff; cursor: pointer; transition: border-color var(--m-hover) ease, background-color var(--m-hover) ease; }
.lk-dialog .st-choice:hover { border-color: #c9d1dc; }
.lk-dialog .st-choice:has(input:checked) { border-color: #8aa6cc; background: #f5f8fc; }
.lk-dialog .st-choice:has(input:focus-visible) { outline: 3px solid rgba(47, 98, 164, .3); outline-offset: 1px; }
.lk-dialog .st-choice input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #172944; }
.lk-dialog .st-choice > span { display: grid; gap: 2px; min-width: 0; }
.lk-dialog .st-choice strong { color: #172033; font-size: 13px; font-weight: 600; line-height: 1.4; }
.lk-dialog .st-choice small { color: #687386; font-size: 12px; line-height: 1.45; }
.lk-dialog .st-choice.is-compact { padding: 9px 12px; }
/* The choices of one question as one ruled list, as Vercel's Manage Team Role lists its Roles. */
.lk-dialog .st-fieldset { gap: 0; }
.lk-dialog .st-fieldset > .st-choice { border-radius: 0; }
.lk-dialog .st-fieldset > .st-choice + .st-choice { margin-top: -1px; }
.lk-dialog .st-fieldset > .st-choice:first-of-type { border-radius: 9px 9px 0 0; }
.lk-dialog .st-fieldset > .st-choice:first-of-type:last-of-type:not(:has(+ *)) { border-radius: 9px; }
.lk-dialog .st-fieldset > .st-choice:has(+ :not(.st-choice)), .lk-dialog .st-fieldset > .st-choice:last-child { border-radius: 0 0 9px 9px; }
.lk-dialog .st-fieldset > .st-choice:has(input:checked) { position: relative; z-index: 1; }
.lk-dialog .st-fieldset > .st-error { margin-top: 6px; }
.lk-dialog .st-access-choice .st-business-list { margin-top: 8px; }
/* The Organization's Businesses to tick, each its tile and name, a column that scrolls when long. */
.lk-dialog .st-business-list { display: grid; gap: 2px; max-height: 248px; margin-top: 4px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid #e4e8ef; border-radius: 9px; background: #fafbfc; }
.lk-dialog .st-business-option { display: grid; grid-template-columns: 16px 24px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 38px; padding: 4px 8px; border-radius: 7px; color: #172033; font-size: 13px; cursor: pointer; transition: background-color var(--m-hover) ease; }
.lk-dialog .st-business-option:hover { background: #fff; }
.lk-dialog .st-business-option input { width: 16px; height: 16px; margin: 0; accent-color: #172944; }
.lk-dialog .st-business-option:has(input:focus-visible) { outline: 2px solid rgba(47, 98, 164, .45); outline-offset: -2px; }
.lk-dialog .st-business-option .biz-tile { width: 24px; height: 24px; border-radius: 7px; font-size: 9px; }
.lk-dialog .st-business-option > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-dialog .st-error { color: #a3262d; font-size: 12px; font-weight: 600; line-height: 1.5; }
/* The line under the list: what to do while none is ticked, or that there is nothing to choose; the next page's row. */
.lk-dialog .st-access-choice > .st-hint { margin-top: 6px; color: #687386; font-size: 12px; line-height: 1.5; }
.lk-dialog .st-business-list .more-marker { height: 1px; }
.lk-dialog .st-business-list .st-loading { min-height: 38px; padding: 0 8px; }
.lk-dialog .st-removal-who { padding: 12px 14px; border: 1px solid #e4e8ef; border-radius: 10px; }

/* A phone: each person a block, their name over their Role and their access, ⋯ at the top right; no sideways scroll. */
@media (max-width: 640px) {
  .st-members, .st-members tbody { display: block; width: 100%; }
  .st-members thead { display: none; }
  .st-members tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who more" "role role" "access access"; align-items: center; column-gap: 8px; row-gap: 8px; padding: 14px 16px; border-top: 1px solid var(--st-rule); }
  .st-members tr:first-child { border-top: 0; }
  .st-members td { display: block; height: auto; padding: 0 !important; border: 0; }
  .st-members .st-cell-who { grid-area: who; }
  .st-members .st-cell-more { grid-area: more; width: auto; }
  .st-members .st-cell-role { grid-area: role; padding-left: 44px !important; }
  .st-members .st-cell-access { grid-area: access; padding-left: 44px !important; }
  .st-members .st-cell-role:empty, .st-members .st-cell-access:empty { display: none; }
  .st-members .st-access { margin-left: -8px; }
  .st-members tr.st-group-row { display: block; padding: 8px 16px; background: var(--st-ground); }
  .st-members tr.st-group-row td { padding: 0 !important; background: transparent; }
  .st-members tr.st-tail { display: block; padding: 0; border: 0; }
  .lk-dialog .st-business-list { max-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-access, .lk-dialog .st-choice, .lk-dialog .st-business-option { transition: none !important; }
}

#overlay-invite .st-roles .st-select, #overlay-invite .st-roles select { width: 100%; max-width: 100%; min-width: 0; }
#overlay-invite .st-access-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#overlay-invite .st-access-choice > .st-choice { border-radius: 8px; margin: 0; }
#overlay-invite .st-access-choice > .st-business-list, #overlay-invite .st-access-choice > small { grid-column: 1 / -1; }
#overlay-invite .st-business-list { max-height: 156px; }
