/* The project team uses the same quiet editorial palette as the manuscript workspace. */
.team-intro { display:flex; align-items:center; justify-content:space-between; gap:22px; border-left:3px solid #95ac8b; }
.team-intro p { max-width:70ch; margin:6px 0 0; }
.team-intro > .row { flex:0 0 auto; }
.team-summary { margin-bottom:22px; }
.team-members > .grid { align-items:start; }
.team-members .card { overflow-wrap:anywhere; }
.team-members table { display:block; max-width:100%; overflow:auto; }
.team-people-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:12px; }
.team-person { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:17px 18px; border:1px solid var(--line); border-radius:10px; background:#fafbf7; }
.team-person > .row { width:100%; align-items:flex-start; }
.team-person.selected { border-color:#6c9368; background:#f0f6e9; }
.team-person > .btn { margin-top:auto; }
.team-person-counts { display:flex; flex-wrap:wrap; gap:6px 14px; color:var(--muted); }
.team-filter { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; padding-block:3px 18px; }
.team-filter .field { margin:0; }
.team-filter .grow { flex:1 1 240px; }
.team-filter select { max-width:280px; }
.team-task-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr)); gap:14px; }
.team-task-list > .empty { grid-column:1 / -1; }
.team-task.card { display:flex; flex-direction:column; margin:0; background:#fbfcf8; box-shadow:none; }
.team-task h3 { font-size:1rem; font-weight:650; margin:0; letter-spacing:0; text-transform:none; }
.team-task > .row { align-items:flex-start; flex-wrap:nowrap; }
.team-task > .row > .tag { flex:0 0 auto; }
.team-task-meta { margin-block:9px 4px; }
.team-task-chapter { margin-bottom:8px; }
.team-task .team-task-actions { flex-wrap:wrap; margin-top:auto; padding-top:14px; }
.team-task-report { margin-bottom:10px; }
.team-task-report > summary { font-size:.8rem; }
.team-preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.team-task > .team-preserve-lines { font-size:.86rem; max-height:220px; overflow:auto; }
.team-task-report > div { max-height:340px; overflow:auto; }
.team-form-actions { justify-content:flex-end; }
.team-chapter-link { white-space:normal; text-align:left; line-height:1.5; padding-left:0; }
.team-assignments { overflow:auto; }
.team-assignments table { min-width:680px; }
.team-assignments td:first-child { min-width:240px; width:36%; }
.team-assignments td:not(:first-child) { min-width:110px; }
.team-pagination { margin-top:14px; }
@media (max-width:1100px) { .team-intro { align-items:flex-start; flex-direction:column; } .team-members > .grid.two { grid-template-columns:1fr; } }
@media (max-width:650px) { .team-task > .row { flex-wrap:wrap; } .team-filter > .field,.team-filter select { width:100%; max-width:none; } .team-intro > .row { flex:1 1 auto; } }

/* One shared editorial directory, outside the book navigation. */
.team-global-scope{display:flex;align-items:flex-end;gap:16px;max-width:800px;margin:12px 0}
.team-global-scope .field{margin:0}.team-directory-search{align-items:flex-end;margin:16px 0}
.team-hub-content>.page-heading h1,.team-hub-content>h1{font-size:1.6rem}
.team-hub-content .team-person-card .row{margin-top:8px}
.team-hub-content .team-person-card{overflow-wrap:anywhere}
@media(max-width:640px){.team-global-scope{display:block}.team-global-scope>.btn{margin-top:12px}}

.access-codes-layout{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:20px;align-items:start}
.access-recipient{border:0;padding:0;margin:0;min-width:0}.access-recipient[hidden]{display:none}
.access-code-list{max-height:780px;overflow:auto}.access-code-list>li{display:grid;gap:8px}.access-code-list .btn{justify-self:start}
.issued-access-code{font-family:ui-monospace,monospace;letter-spacing:.04em;font-weight:650;font-size:17px}
@media(max-width:1050px){.access-codes-layout{grid-template-columns:1fr}.access-code-list{max-height:none}}

.access-recipient legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.access-codes-layout .hint{color:var(--muted);font-size:12px;line-height:1.5}

.project-picker{border:1px solid var(--line);border-radius:12px;padding:14px;min-width:0;margin:0}
.project-picker legend{font-weight:650;padding:0 6px}.project-choice{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:400;margin:0;flex:1;min-width:0}.project-choice span{overflow-wrap:anywhere}
.project-picker input[type=checkbox]{appearance:auto;width:18px;height:18px;min-width:18px;accent-color:var(--accent,#38604c);cursor:pointer}.project-choice-all{padding:6px 0 12px;border-bottom:1px solid var(--line)}
.project-options{max-height:290px;overflow:auto;margin:8px 0 12px}.project-choice-row{display:flex;align-items:center;gap:12px;padding:9px 0}.project-role{max-width:145px}.project-picker>p{margin-bottom:0}
@media(max-width:600px){.project-choice-row{flex-wrap:wrap}.project-role{margin-left:28px}.project-picker{padding:10px}}

/* One row per person; project grants remain readable when the book list grows. */
.team-directory-card,.team-hub-content{min-width:0;max-width:100%}
.team-access-scroll{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;max-height:68vh;overscroll-behavior:contain}
.team-access-scroll:focus-visible{outline:2px solid var(--accent,#38604c);outline-offset:3px}
.team-access-table{border-collapse:separate;border-spacing:0;min-width:100%;width:max-content;margin:0;table-layout:fixed}
.team-access-table th,.team-access-table td{box-sizing:border-box;border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:16px;vertical-align:middle;white-space:normal}
.team-access-table th{font-weight:600;text-transform:none;letter-spacing:0;font-size:13px;line-height:1.5}
.team-access-table thead th{position:sticky;top:0;z-index:2;background:#f2f5ee;color:var(--text,#28362d)}
.team-access-table .team-person-column{position:sticky;left:0;z-index:1;width:240px;min-width:240px;max-width:240px;background:#fff;text-align:left;box-shadow:2px 0 4px #24332208;overflow-wrap:anywhere}
.team-access-table thead .team-person-column{z-index:3;background:#f2f5ee}
.team-access-table .team-person-column>span,.team-access-table .team-project-column>span{display:block}
.team-access-table .team-person-column>strong{font-size:14px}.team-access-table .team-person-column>span{margin-top:4px;font-weight:400}
.team-access-table .team-project-column{width:170px;min-width:150px;max-width:190px;text-align:center;overflow-wrap:anywhere}
.team-access-table .team-role-column{width:170px;min-width:160px;max-width:170px}
.team-access-table select{width:100%;min-width:120px;font-size:13px;padding:9px 10px}
.team-access-choice{display:flex;flex-direction:column;gap:8px;align-items:center;margin:0;cursor:pointer;font-weight:400;text-align:center}
.team-access-choice input[type=checkbox]{appearance:auto;width:22px;height:22px;min-width:22px;accent-color:var(--accent,#38604c);cursor:pointer;margin:0}
.team-access-choice input:disabled{cursor:default}.team-access-choice input:focus-visible{outline:2px solid #507354;outline-offset:4px}
.team-access-choice .small{font-size:11px;line-height:1.4;min-height:16px}
.team-access-table tbody tr:nth-child(even) td,.team-access-table tbody tr:nth-child(even) .team-person-column{background:#fafbf8}
.team-access-table tbody tr:hover td,.team-access-table tbody tr:hover .team-person-column{background:#f4f8ef}
.team-access-table tbody tr:last-child>*{border-bottom:0}.team-access-table tr>:last-child{border-right:0}
.team-actions-column{min-width:155px;max-width:180px}.team-row-actions{display:flex;gap:7px;flex-wrap:wrap}
.team-access-status{min-height:22px;margin:12px 0 0;color:var(--accent,#38604c)}
@media(max-width:680px){.team-access-table .team-person-column{width:180px;min-width:180px;max-width:180px}.team-access-table th,.team-access-table td{padding:12px}.team-directory-card>.row{align-items:flex-start}.team-access-table .team-project-column{min-width:145px;max-width:155px}.team-directory-search>.field{flex-basis:100%}}

.team-access-table caption.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.team-access-table tbody .team-person-column{color:var(--text,#28362d)}
