.tool-handovers { margin: 16px 0; }
.th-heading, .th-batch-heading, .th-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.th-heading { border-bottom: 1px solid #d6dee6; padding-bottom: 10px; margin-bottom: 12px; }
.th-heading h3 { font-size: 16px; margin: 0; }
.th-heading > button { margin-left: auto; }
.th-batch { border: 1px solid #c8d9de; border-left: 3px solid #087f81; border-radius: 8px; background: #fff; padding: 14px; margin: 10px 0; color: #172126; }
.th-batch-heading > span { margin-left: auto; font-weight: 700; }
.th-parties { font-size: 14px; margin: 6px 0; overflow-wrap: anywhere; }
.th-batch > small { color: #576678; }
.th-batch p { margin: 6px 0; overflow-wrap: anywhere; }
.th-batch summary { cursor: pointer; margin: 10px 0; font-weight: 600; }
.th-actions { margin-top: 12px; }
.th-button { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 8px 14px; border: 1px solid #becbd6; border-radius: 6px; background: #fff; color: #34404a; cursor: pointer; white-space: normal; }
.th-primary { color: #fff; background: #087f81; border-color: #087f81; }
.th-button:disabled { opacity: .5; cursor: default; }
.th-button:focus-visible, .th-close:focus-visible { outline: 2px solid #057886; outline-offset: 3px; }
.th-list { list-style: none; padding: 0; margin: 12px 0; }
.th-list > li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2e8ed; }
.th-list > li > div, .th-list > li > label { flex: 1; min-width: 0; }
.th-list strong, .th-list small { display: block; overflow-wrap: anywhere; }
.th-list small { margin-top: 3px; color: #576678; font-size: 12px; }
.th-list > li > span { font-size: 13px; flex-shrink: 0; max-width: 35%; }
.th-empty { color: #576678; font-size: 14px; }
.th-error { color: #b42318; overflow-wrap: anywhere; }
.tool-handover-dialog { padding: 0; margin: auto; width: min(640px, calc(100% - 24px)); max-height: min(90dvh, 780px); border: 1px solid #bac9d4; border-radius: 8px; background: #fff; color: #172126; box-sizing: border-box; }
.tool-handover-dialog::backdrop { background: rgb(18 30 40 / 45%); }
.tool-handover-dialog .th-form { display: flex; flex-direction: column; max-height: calc(min(90dvh, 780px) - 2px); margin: 0; }
.tool-handover-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #d6dee6; flex-shrink: 0; }
.tool-handover-dialog h2 { margin: 0; font-size: 20px; }
.th-close { background: transparent; border: 0; color: #34404a; font-size: 26px; width: 40px; height: 40px; cursor: pointer; flex-shrink: 0; }
.th-review { padding: 16px; min-height: 0; overflow-y: auto; }
.tool-handover-dialog .th-check { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.tool-handover-dialog input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #087f81; }
.tool-handover-dialog select { font: inherit; font-size: 14px; padding: 8px; border: 1px solid #bac9d4; border-radius: 6px; background: #fff; width: auto; max-width: 36%; }
.th-note-label { display: block; margin: 14px 0; font-size: 14px; }
.tool-handover-dialog textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1px solid #bac9d4; border-radius: 6px; margin-top: 6px; }
.tool-handover-dialog footer { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid #d6dee6; flex-wrap: wrap; flex-shrink: 0; }
.tool-handover-dialog footer > span { margin-right: auto; font-size: 14px; }
@media (max-width: 480px) {
  .tool-handover-dialog h2 { font-size: 18px; }
  .th-review { padding: 12px; }
  .tool-handover-dialog footer { padding: 10px 12px; gap: 8px; }
  .tool-handover-dialog .th-list > li { gap: 8px; }
}
