.team-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.team-stats .card{padding:20px;display:flex;flex-direction:column;gap:8px}.team-stats strong{font-size:32px;line-height:1.2;color:#332436}.team-stats span{font-size:12px;color:#77717d}.team-toolbar{display:flex;gap:16px;align-items:center;margin-bottom:18px;padding:14px!important}.team-search{display:flex;align-items:center;gap:12px;flex:1;min-width:180px}.team-search input{width:100%;border:0;background:transparent;outline:none;box-shadow:none}.team-search svg{width:20px;color:#79717e;flex-shrink:0}.team-toolbar select{width:190px}.team-check{display:flex;align-items:center;gap:8px;font-size:12px;white-space:nowrap}.team-check input{width:16px;height:16px}.team-table{background:#fff;border:1px solid #e4dfd9;border-radius:20px;overflow:hidden}.team-table-head,.team-row{display:grid;grid-template-columns:minmax(230px,1.5fr) minmax(170px,1fr) 145px minmax(180px,1fr);gap:18px;align-items:center;padding:17px 22px}.team-table-head{background:#eeeae4;color:#77717d;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.team-row{width:100%;text-align:left;border:0;border-bottom:1px solid #efede8;background:#fff;color:#332d35;cursor:pointer;font:inherit}.team-row:last-child{border:0}.team-row:hover,.team-row:focus-visible{background:#f7f8ed;outline:2px solid #adb976;outline-offset:-2px}.team-row strong{font-size:13px;display:block}.team-row small{display:block;font-size:11px;color:#857e88;margin-top:6px}.team-identity{display:flex;gap:12px;align-items:center;min-width:0}.person-avatar{height:38px;width:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:13px;background:#eee5d9;color:#5b493d;font-weight:700;flex-shrink:0}.person-avatar.large{width:62px;height:62px;font-size:22px;border-radius:20px}.team-stage{display:inline-block;font-size:11px;padding:5px 9px;border-radius:7px;background:#f0ebf4;color:#645077;white-space:nowrap}.stage-working{background:#eaf2d7;color:#58683a}.stage-fired,.stage-rejected{background:#f4e5e3;color:#a7655b}.stage-school,.stage-trial{background:#e8eafa;color:#5965a4}.team-row-date,.team-row-issues{font-size:12px}.team-row-issues{color:#a77741}.team-ok{color:#657744}.team-count{font-size:12px;text-align:right}.team-person-head{display:flex;align-items:center;gap:18px;margin:26px 0}.team-person-head h2{margin:4px 0}.team-person-head>.team-stage{margin-left:auto}.team-tabs{display:flex;overflow:auto;gap:6px;border-bottom:1px solid #ddd7ce;padding-bottom:10px;margin-bottom:24px;scrollbar-width:thin}.team-tabs button{flex-shrink:0;border:0;background:transparent;border-radius:10px;padding:10px 13px;color:#776c7b;font:inherit;font-size:12px;cursor:pointer}.team-tabs button.active{background:#332436;color:#fff}.team-tabs span{opacity:.7;margin-left:3px;font-size:10px}.team-detail-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.team-facts{margin:16px 0;display:grid;gap:0}.team-facts>div{display:grid;grid-template-columns:minmax(130px,.8fr) 1.2fr;gap:20px;padding:10px 0;border-bottom:1px solid #f0ece8;font-size:12px}.team-facts dt{color:#827989}.team-facts dd{margin:0;overflow-wrap:anywhere;color:#332d35;white-space:pre-line}.team-facts a{color:#667842}.team-issue-list{padding-left:19px;color:#99723e;font-size:13px;line-height:2}.team-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.team-links .button{font-size:11px}.team-links b{margin-left:8px}.team-record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.team-record{min-width:0}.team-dialog{width:min(760px,94vw);max-height:90dvh;border:1px solid #e4dfd9;border-radius:22px;padding:26px;background:#faf8f5;color:#332d35;box-shadow:0 28px 90px #20172740}.team-dialog::backdrop{background:#20172765;backdrop-filter:blur(5px)}.team-dialog form{padding:0;box-shadow:none;background:transparent;border:0}.team-dialog .sheet-head{margin-bottom:20px}.team-dialog input,.team-dialog textarea,.team-dialog select{max-width:100%;box-sizing:border-box}.team-dialog .form-grid{gap:14px}.team-dialog label{font-size:12px}.team-dialog textarea{resize:vertical}.team-history{border-bottom:1px solid #e9e3de;padding:16px 0}.team-history p{margin:6px 0}.credential-source{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px;background:#ede8e1;padding:14px;border-radius:10px}
@media(max-width:1050px){.team-table-head,.team-row{grid-template-columns:minmax(190px,1.3fr) 1fr 1fr}.team-row-date,.team-table-head span:nth-child(3){display:none}.team-toolbar{flex-wrap:wrap}.team-search{flex-basis:100%}.team-detail-grid{grid-template-columns:1fr}}
@media(max-width:640px){.team-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-stats .card{padding:16px}.team-stats strong{font-size:25px}.team-toolbar select{width:140px}.team-table{border:0;background:transparent;border-radius:0;overflow:visible}.team-table-head{display:none}.team-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:16px;margin-bottom:10px;border:1px solid #e7e0d8;border-radius:15px}.team-identity{grid-column:1/3}.team-row-issues{font-size:10px;text-align:right}.team-row strong{font-size:13px}.team-record-list{grid-template-columns:1fr}.team-person-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.team-person-head h2{font-size:19px}.team-person-head>.team-stage{margin-left:0}.team-facts>div{grid-template-columns:1fr 1.2fr;gap:12px}.team-dialog{padding:20px;max-height:88dvh}.team-dialog .form-grid{grid-template-columns:1fr}.team-tabs{margin-inline:-4px}.team-tabs button{padding:11px}.team-stats span{font-size:11px}}

/* Team export uses the same explicit filters as the visible list. */
.team-toolbar{flex-wrap:wrap}.team-toolbar .team-search{flex-basis:100%}.team-toolbar #team-mentor{width:min(100%,280px)}
@media(max-width:640px){.team-toolbar select,.team-toolbar #team-mentor{width:100%}}

/* 05.10: the open «Ещё» tabs wrap; the active tab must not stretch to that height. */
.team-tabs{align-items:flex-start}

/* Call 05.10: readable working teams, only two meaningful stage counts. */
.team-stats.team-active-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:720px}
.team-stats.team-active-stats span,.team-stats.team-active-stats p{font-size:15px;font-weight:600;color:var(--text,#332d35);margin:6px 0 0}
.mentor-grid .card h3{font-size:21px;line-height:1.4;margin:0 0 18px;letter-spacing:-.02em}
.mentor-grid .team-active-stats{margin:12px 0 22px;gap:14px}
.mentor-grid .team-active-stats>div{padding:14px;border-radius:12px;background:var(--bg,#f7f6f2)}
.mentor-grid .team-stat-link:focus-visible{outline:3px solid var(--accent,#71843d);outline-offset:3px}
.team-table .team-row strong{font-size:16px;line-height:1.45}
.team-table .team-row small{font-size:13px;line-height:1.5;color:var(--muted,#706b73)}
.team-stage{font-size:13px;font-weight:600;padding:6px 10px}
.team-table-head{font-size:12px;letter-spacing:.02em}
.team-row-date,.team-row-issues,.team-count{font-size:14px;line-height:1.5}
.team-toolbar{gap:12px}
.team-toolbar .team-check{font-size:14px;white-space:normal}
.team-toolbar #team-group{width:210px}
.team-toolbar #team-status{width:210px}
.team-person-head h2{font-size:28px;line-height:1.35;overflow-wrap:anywhere}
.team-facts>div{font-size:15px;padding:14px 0;gap:18px}
.team-facts dt{color:var(--muted,#706b73);font-weight:500;line-height:1.5}
.team-facts dd{font-weight:550;line-height:1.5}
.team-facts .button{justify-self:start}
.team-issue-list{font-size:15px;line-height:1.6}
.team-dialog{overflow-y:auto;overflow-x:hidden}
.team-dialog label{font-size:15px;font-weight:600}
.team-dialog select,.team-dialog input,.team-dialog textarea{font-size:16px}
.team-tabs button{font-size:15px;padding:12px 16px}
.team-tabs span{font-size:13px}
.team-links .button{font-size:14px}
.team-table>.team-quick-edit{margin:0;padding:10px 22px;border-radius:0;border-width:0 0 1px;width:100%;text-align:right;background:var(--surface,#fff);font-size:13px}
@media(max-width:640px){
  .team-toolbar #team-group,.team-toolbar #team-status{width:100%}
  .team-stats.team-active-stats{gap:12px}
  .team-person-head h2{font-size:23px}
  .team-table .team-row strong{font-size:17px}
  .team-row-issues{text-align:left;font-size:13px}
  .team-facts>div{grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:14px;font-size:15px}
  .team-dialog{width:calc(100vw - 24px);padding:20px;max-height:calc(100dvh - 24px)}
  .team-table>.team-quick-edit{width:auto;border:1px solid var(--border,#e5dfd8);border-radius:10px;margin:-2px 0 16px auto}
}
