/* The team list lives in a modal sheet, never inside the job card. */
.assignment-picker-control { min-width: 0; }
.assignment-picker-trigger {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  width: 100%; min-height: 48px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--line, #d6dfe3); border-radius: 10px;
}
.assignment-picker-trigger > span { font-size: 13px; color: var(--navy-2, #163c51); }
.assignment-picker-trigger > strong { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.assignment-picker-pending { display: block; margin-top: 5px; color: #805b13; }
dialog.assignment-picker {
  position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(520px, calc(100vw - 32px)); max-width: none;
  max-height: min(720px, calc(100dvh - 48px)); overflow: hidden;
  border: 0; border-radius: 20px; background: #fff; color: #152c37;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .24);
}
dialog.assignment-picker[open] { display: flex; flex-direction: column; }
dialog.assignment-picker::backdrop { background: rgba(7, 26, 38, .48); }
.assignment-picker-handle { display: none; }
.assignment-picker-header {
  display: flex; flex: none; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 20px 20px 12px;
}
.assignment-picker-header h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.assignment-picker-header p { margin: 5px 0 0; font-size: 14px; line-height: 1.45; color: #5a6c74; overflow-wrap: anywhere; }
.assignment-picker-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  min-height: 44px; padding: 0; border: 0; border-radius: 50%;
  color: #243c47; background: #f0f4f5; font-size: 26px; line-height: 1;
}
.assignment-picker-search { flex: none; display: grid; gap: 6px; margin: 0; padding: 0 20px; }
.assignment-picker-search > span { font-size: 13px; font-weight: 600; }
.assignment-picker-search input {
  box-sizing: border-box; width: 100%; min-height: 46px; min-width: 0;
  padding: 10px 12px; border: 1px solid #bac9d0; border-radius: 10px;
  font: inherit; font-size: 16px; background: #fff;
}
.assignment-picker-count { flex: none; margin: 0; padding: 10px 20px; color: #526772; font-size: 13px; }
.assignment-picker-list { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 20px; }
.assignment-picker-option {
  display: flex; align-items: center; gap: 12px; min-height: 62px; margin: 0;
  padding: 12px 0; border: 0; border-bottom: 1px solid #edf1f3;
  cursor: pointer; font-size: 15px;
}
.assignment-picker-option input[type="checkbox"] {
  flex: none; width: 23px; height: 23px; margin: 0; padding: 0; accent-color: #163c51;
}
.assignment-picker-option > span { min-width: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.assignment-picker-option strong { font-size: 15px; line-height: 1.4; }
.assignment-picker-option small { display: block; font-size: 13px; line-height: 1.4; color: #5a6c74; }
.assignment-picker-option:has(input:checked) strong { color: #0b5474; }
.assignment-picker-option .assignment-picker-test { color: #805b13; }
.assignment-picker-empty { padding: 20px 0; font-size: 15px; color: #5a6c74; }
.assignment-picker-error { flex: none; margin: 0; padding: 10px 20px; color: #a5302b; font-size: 14px; line-height: 1.4; }
.assignment-picker-footer {
  display: flex; flex: none; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid #e4ebee; background: #fff;
}
.assignment-picker-footer button { min-height: 46px; padding: 10px 14px; font-size: 14px; line-height: 1.3; white-space: normal; }
.assignment-picker :focus-visible { outline: 3px solid #bc9440; outline-offset: 2px; }
@media (max-width: 760px) {
  dialog.assignment-picker {
    inset: auto 0 0; margin: 0; width: 100%; max-width: 100%;
    max-height: calc(var(--assignment-picker-available-height, 100dvh) - env(safe-area-inset-top) - 16px);
    border-radius: 20px 20px 0 0;
    animation: assignment-picker-enter .2s ease-out;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .assignment-picker-handle { display: block; flex: none; width: 36px; height: 4px; margin: 10px auto 0; border-radius: 3px; background: #cad4d9; }
  .assignment-picker-header { padding: 12px 16px; }
  .assignment-picker-search, .assignment-picker-list { padding-inline: 16px; }
  .assignment-picker-count, .assignment-picker-error { padding-inline: 16px; }
  .assignment-picker-list { max-height: 48dvh; }
  .assignment-picker-footer { padding: 12px 16px; }
  .assignment-picker-footer .primary { flex: 1; }
}
@keyframes assignment-picker-enter { from { transform: translateY(35%); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.assignment-picker { animation: none; } }

