/* «Команда» (team.js, 0100). Layout comes from customers.css (cu-*) and
   catalog.css (ct-*): the list and the profile are built like «Клиенты». */

.tm-chip-lead { background: var(--accent-weak); color: var(--accent-ink); }
.tm-chip-field { background: var(--green-weak); color: var(--green); }
.tm-chip-now { background: var(--green-weak); color: var(--green); font-weight: 600; }

.tm-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.tm-alert {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-left: 3px solid var(--red);
}
.tm-alert h3 { color: var(--red); }
.tm-deps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.tm-deps li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.tm-deps li a { color: var(--ink); font-weight: 500; }
.tm-deps li.now a { color: var(--green); }
.tm-dep-t { flex-basis: 100%; color: var(--ink-2); }

.tm-table td { vertical-align: top; }
.tm .cu-two { align-items: start; }
.tm-seen { margin-top: 8px; }

.tm-form { display: flex; flex-direction: column; gap: 12px; }
.tm-form .field { margin: 0; }
.tm-form .field .muted { display: block; margin-top: 4px; }
.tm-inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.tm-inline input { flex: 1 1 220px; }
.tm-role-pick { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }

.tm-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; margin-top: 10px; }
.tm-perm-g h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle); }
.tm-perm-g ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.tm-perm-g li { display: flex; gap: 6px; align-items: flex-start; }
.tm-perm-g li .ic { width: 15px; height: 15px; color: var(--green); flex: none; margin-top: 1px; }
.tm-perm-g li.off { color: var(--subtle); }
.tm-off { width: 15px; text-align: center; flex: none; }

.tm-acts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tm-acts li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; }
.tm-acts li:last-child { border-bottom: 0; }
.tm-act-t { color: var(--subtle); font-variant-numeric: tabular-nums; }

.tm-bars { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.tm-bars li { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr 36px; gap: 10px; align-items: center; }
.tm-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.tm-bar { height: 8px; border-radius: 4px; background: var(--divider); overflow: hidden; }
.tm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

@media (max-width: 760px) {
  .tm-acts li { grid-template-columns: 1fr; gap: 2px; }
  .tm-board { grid-template-columns: 1fr; }
}

/* ── 0147: password, credentials card, dismissal, former members ──── */
.tm-chip-former { background: var(--paper-2); color: var(--subtle); }
.tm-former .cu-name { color: var(--ink-2); }
.tm-former .cu-ava { opacity: .6; }

.tm-dupe { margin: -4px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--amber-weak); color: var(--ink); font-size: 13px; }
.tm-dupe a { white-space: nowrap; }

.tm-pass-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tm-pass-row input { flex: 1 1 220px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tm-pass-row .ic { width: 15px; height: 15px; }

.tm-cred { display: flex; flex-direction: column; gap: 14px; }
.tm-cred > p { margin: 0; }
.tm-cred-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin: 0; align-items: center; }
.tm-cred-dl dt { color: var(--subtle); font-size: 13px; }
.tm-cred-dl dd { margin: 0; display: flex; gap: 8px; align-items: center; min-width: 0; }
.tm-cred-dl code {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; background: var(--paper-2); font-size: 13.5px;
}
.tm-cred-pass { font-size: 16px !important; font-weight: 600; letter-spacing: .04em; }
.tm-cred textarea { font-size: 13px; }

.tm-dismiss { border-left: 3px solid var(--amber); }
.tm-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.tm-plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; line-height: 1.45; }
.tm-plan li .ic { width: 17px; height: 17px; margin-top: 1px; }
.tm-plan-do .ic { color: var(--red); }
.tm-plan-keep .ic { color: var(--green); }
.tm-plan-warn { background: var(--amber-weak); border-radius: 8px; padding: 6px 8px; margin: 0 -8px; }
.tm-plan-warn .ic { color: var(--amber); }
.tm-plan-deps summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.tm-plan-deps .tm-deps { margin-top: 8px; }
.tm-refusal { display: flex; gap: 10px; align-items: flex-start; }
.tm-refusal .ic { width: 20px; height: 20px; color: var(--amber); flex: none; }
.tm-refusal p { margin: 0; }

.tm-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 13px; }
.tm-hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--divider); }
.tm-hist li:last-child { border-bottom: 0; }
.tm-hist-t { color: var(--subtle); font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .tm-cred-dl { grid-template-columns: 1fr; }
  .tm-cred-dl dd { flex-wrap: wrap; }
}

/* ── 0148: password generator, «Данные» ───────────────────────────── */
.pg { display: flex; flex-direction: column; gap: 10px; }
.pg-out { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; }
.pg-meter { display: flex; align-items: center; gap: 10px; min-height: 18px; font-size: 12.5px; color: var(--ink-2); }
.pg-bars { display: inline-grid; grid-template-columns: repeat(4, 28px); gap: 4px; }
.pg-bars i { height: 5px; border-radius: 3px; background: var(--divider); }
.pg-meter[data-level="0"] .pg-bars { visibility: hidden; }
.pg-meter[data-level="1"] .pg-bars i:nth-child(-n+1) { background: var(--red); }
.pg-meter[data-level="2"] .pg-bars i:nth-child(-n+2) { background: var(--amber); }
.pg-meter[data-level="3"] .pg-bars i:nth-child(-n+3) { background: var(--green); }
.pg-meter[data-level="4"] .pg-bars i { background: var(--green); }
.pg-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-kind {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface);
  font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.pg-kind:hover { border-color: var(--field-border); color: var(--ink); }
.pg-kind.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pg-opts { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); }
.pg-opts p { margin: 0; }
.pg-range { display: grid; grid-template-columns: 90px minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-size: 13px; }
.pg-range input { width: 100%; accent-color: var(--accent); }
.pg-range b { text-align: right; font-variant-numeric: tabular-nums; }
.pg-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.pg-checks .check { margin: 0; }
.pg-sep { display: flex; align-items: center; gap: 8px; }
.pg-sep select { width: auto; padding: 4px 8px; }

.tm-fio .field { flex: 1 1 140px; }
.tm-person .cu-subhead { margin-top: 6px; }
.tm-person .field .muted.sm { display: block; margin-top: 4px; }

/* ── TNA-51: «Бета и доска» ─────────────────────────────────────────── */
.tm-acc-card { margin-top: 16px; }
.tm-acc { border: 1px solid var(--stroke); border-radius: 10px; padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-acc legend { padding: 0 6px; font-weight: 600; font-size: 13.5px; }
.tm-acc-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.tm-acc-row input { margin-top: 3px; }
.tm-acc-row .muted { display: block; }
.tm-acc-projects { display: flex; flex-direction: column; gap: 6px; padding-left: 26px; }
.tm-acc-projects.is-off { opacity: .45; pointer-events: none; }
.tm-acc-project { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; max-width: 420px; }
.tm-acc-project select { flex: 0 0 150px; }
.tm-photo { margin-bottom: 16px; }
.cu-ava.tm-photo-ava { width: 88px; height: 88px; font-size: 30px; }
