/* Daily Life Doc, round 39 (zone K; moved by zone P3 from css/kb-team.css): Settings → Team (js/settings/team.js,
   js/settings/team-page.js, js/settings/settings-team.js, .kt-*):
   the group's head with + Add on the right, a person's row (the initial in a small round, the Display name as the
   row's name, the Role and Access line in grey; fixer FX2: no tag and no "You", the owner's correction), and a person's page and the Add page:
   the Account card's tinted fields (.ac-f) in one column, Access as the For choice's segments, a field that may not be
   changed as plain text, the buttons and the red line under them. */
.kt-gh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kt-gh .kbg { flex: 1 1 auto; }
.kt-add { flex: none; }
.kt-grp .kud-r { grid-template-columns: 24px minmax(0, 1fr); }
.kt-n { min-width: 0; overflow-wrap: anywhere; }
.kt-grp .kbr .nm2 small { white-space: normal; }

.kt-body { display: flex; flex-direction: column; padding-bottom: 24px; }
.kt-form { width: 100%; max-width: 480px; padding-top: 6px; }
.kt-f { margin-bottom: 12px; }
.kt-ro { margin: 0; padding: 2px 0; font-size: var(--t-s); color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.kt-none { color: var(--ink3); }
.kt-seg { align-self: flex-start; }
.kt-seg > button { padding: 6px 16px; font-size: var(--t-sm); }
.kt-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.kt-err { margin: 10px 2px 0; }
.kt-err[hidden] { display: none; }
.kt-link { max-width: 480px; margin: 4px 0 12px; }
.kt-rm { color: var(--bad-d); }
@media (max-width: 400px) {
  .kt-go .pill:not(.kt-rm) { flex: 1; }
}

/* Round 39 (zone P3): a person's page inside the card Team of Settings: Back, then the name over its line, on one row
   (the knowledge base's bar classes are reused, so they are laid out here for the card). */
.tm-page .xbar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 0; background: none; border: 0; position: static; }
.tm-page .xt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.tm-page .kt-t { font-size: var(--t-m, 17px); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tm-page .kb-sub { margin: 0; font-size: var(--t-xs); color: var(--ink3); }
.tm-page .xbody { padding: 0; }
.tm-list .kt-add { margin-top: 8px; }
.tm-page .klk-xt .kb-sub::before { content: none; }
.tm-page .kb-sub:empty { display: none; }
/* Round 47 (zone C): Log in as beside a person, and the rows Partner and Assign clients under the people. */
.kt-rw { display: flex; align-items: center; gap: 10px; }
.kt-rw .kt-r { flex: 1 1 auto; min-width: 0; }
.kt-as { flex: none; min-height: 36px; }
.kt-more { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line, rgba(0, 0, 0, .06)); }
.kt-x { display: flex; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; }
.kt-xn { flex: none; min-width: 120px; font-size: var(--t-s); font-weight: 600; color: var(--ink); }
.kt-xv { flex: 1 1 200px; min-width: 0; font-size: var(--t-sm); color: var(--ink2); overflow-wrap: anywhere; line-height: 1.4; }
.kt-on { flex: none; font-size: var(--t-sm); font-weight: 600; color: var(--good-d); }
.kt-x .kt-seg { margin-left: auto; }
/* Round 47 (fixer F1): at phone width Log in as takes a 44 px touch height. Round 49 (fixer F3): Assign clients' Off
   and On are the size of every other switch of Settings (Notify me, How often). */
.kt-x .kt-seg > button { padding: 4px 11px; font-size: var(--t-xs); }
@media (max-width: 880px) {
  .kt-as { min-height: 44px; }
}
/* Round 60 (zone T, Part E; the card New clients of rounds 50 to 59 went): a person's Tags (js/settings/team-tags.js),
   the chips of Settings → Permissions' who (css/settings-who.css .sa-chip): under the person's row in the list, lined
   up with the name (the 24 px initial and the row's 8 px gap), and as the field Tags of the person's page. */
.kt-tg, .kt-tgs { display: flex; flex-wrap: wrap; gap: 6px; }
.kt-tg { padding: 0 0 10px 32px; margin-top: -2px; }
.kt-tgs { padding-top: 2px; }
.kt-tg .sa-chip, .kt-tgs .sa-chip { min-height: 32px; padding: 0 12px; font-size: var(--t-sm); }
/* Fixer FX2 (walk W1 fault 8): a Member's tags are plain grey words, "Tags: NeuroClarity · Others". */
.kt-tg.kt-tgw { display: block; margin-bottom: 0; font-size: var(--t-xs); color: var(--ink2); line-height: 1.4; }
@media (max-width: 880px) {
  .kt-tg button.sa-chip, .kt-tgs button.sa-chip { min-height: 40px; padding: 0 12px; border-radius: 20px; }
}
/* Fixer FX2 (walk W1 fault 9): on a phone an admin's chips start under the initial and sit a little tighter, so four
   tags fit one line at 430 px (at 340 px they part two and two). */
@media (max-width: 600px) {
  .kt-tg, .kt-tgs { gap: 4px; }
  .kt-tg:not(.kt-tgw) { padding-left: 0; }
  .kt-tg button.sa-chip, .kt-tgs button.sa-chip { padding: 0 10px; font-size: var(--t-xs); }
}
/* A phone: each Partner row's name stands over its line (the rows wrap), so the rows get a little air between them. */
@media (max-width: 600px) {
  .kt-more { gap: 10px; }
}
