.team-manager-popup { text-align: left; }
.team-manager-toolbar { display: grid; grid-template-columns: 1fr minmax(220px, 360px) 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.team-manager-add { justify-self: end; background: #16a34a; }
.team-manager-search { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.team-manager-table-wrap { overflow: auto; }
.team-manager-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.team-manager-table th, .team-manager-table td { padding: 9px; border: 1px solid #d7dce3; vertical-align: middle; }
.team-manager-table th { background: #1e293b; color: #fff; text-align: center; }
.team-manager-table td:first-child { text-align: center; width: 78px; }
.team-manager-thumb { width: 68px; height: 68px; display: block; margin: auto; object-fit: cover; border: 1px solid #cbd5e1; border-radius: 9px; cursor: pointer; }
.team-manager-actions { display: flex; justify-content: center; gap: 6px; }
.team-manager-btn { border: 0; border-radius: 8px; padding: 8px 11px; color: #fff; cursor: pointer; font: inherit; }
.team-manager-edit { background: #f59e0b; }
.team-manager-delete { background: #dc2626; }
.team-manager-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.team-manager-pages button { padding: 7px 11px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; cursor: pointer; }
.team-manager-pages button.active { border-color: #dc2626; background: #dc2626; color: #fff; }
.team-manager-overlay { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .72); }
.team-manager-dialog { width: min(620px, 94vw); max-height: 92vh; overflow: auto; padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.team-manager-dialog h3 { margin: 0 0 18px; text-align: center; }
.team-manager-form { display: grid; gap: 13px; text-align: left; }
.team-manager-form label { font-weight: 600; }
.team-manager-form input { width: 100%; margin-top: 5px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; box-sizing: border-box; }
.team-manager-hint { color: #64748b; font-size: 12px; }
.team-manager-preview { display: block; max-width: 210px; max-height: 170px; margin: 8px auto 0; object-fit: contain; border-radius: 8px; }
.team-manager-error { min-height: 22px; color: #dc2626; text-align: center; }
.team-manager-form-actions { display: flex; justify-content: center; gap: 10px; }
.team-manager-cancel { background: #64748b; }
.team-manager-save { background: #16a34a; }
.team-manager-confirm-delete { background: #dc2626; }
.team-manager-dialog button:disabled { opacity: .65; cursor: wait; }
.team-manager-image-dialog { position: relative; max-width: min(1000px, 94vw); max-height: 90vh; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.team-manager-large-image { display: block; max-width: calc(94vw - 32px); max-height: calc(90vh - 32px); object-fit: contain; }
.team-manager-image-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border: 3px solid #fff; border-radius: 50%; background: #dc2626; color: #fff; font-size: 27px; cursor: pointer; }
@media (max-width: 760px) { .team-manager-toolbar { grid-template-columns: 1fr; } .team-manager-add { justify-self: stretch; } .team-manager-total { text-align: center; } }
