/* This page displays assignments and stored evidence; scoped to avoid changing other operations screens. */
.npc-duties-page { max-width: 1280px; margin: 0 auto; padding: 20px; }
.npc-duties-page h1 { margin: 0 0 10px; }
.npc-duties-page h2 { margin: 22px 0 12px; }
.npc-duties-page h3 { line-height: 1.5; margin: 0 0 10px; }
.npc-duties-page .hint { line-height: 1.65; margin: 8px 0; overflow-wrap: anywhere; }
.npc-duties-page .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.npc-duties-page .row > a { padding: 8px 0; }
.npc-duties-page .ops-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.npc-duties-page .card { padding: 18px; border: 1px solid var(--line, #8290a64d); border-radius: 12px; min-width: 0; }
.npc-duties-page article.card > .row { margin: 16px 0 8px; }
.npc-duties-page dl { margin: 12px 0; }
.npc-duties-page dl > div { display: grid; grid-template-columns: minmax(100px, 30%) minmax(0, 1fr); gap: 8px; padding: 5px 0; }
.npc-duties-page dt { font-weight: 600; }
.npc-duties-page dd { margin: 0; overflow-wrap: anywhere; }
.npc-duties-page details { margin: 12px 0; }
.npc-duties-page summary { cursor: pointer; padding: 7px 0; font-weight: 600; }
.npc-duties-page pre { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; font: inherit; max-height: 60vh; overflow: auto; padding: 12px; border: 1px solid var(--line, #8290a64d); border-radius: 8px; }
.npc-duty-health { border-left: 3px solid var(--accent, #3776bb); padding-left: 14px; margin: 20px 0; }
.npc-duty-health:empty { display: none; }
.npc-duty-editor:not(:empty) { padding: 20px; margin: 20px 0; border: 2px solid var(--accent, #3776bb); border-radius: 12px; }
.npc-duty-editor form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.npc-duty-editor form > label { display: flex; flex-direction: column; gap: 8px; line-height: 1.5; font-weight: 600; }
.npc-duty-editor input:not([type=checkbox]), .npc-duty-editor textarea, .npc-duty-editor select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px; font: inherit; color: inherit; background: var(--bg, transparent); border: 1px solid var(--line, #8290a680); border-radius: 6px; }
.npc-duty-editor textarea { resize: vertical; }
.npc-duty-editor input[type=checkbox] { width: 20px; height: 20px; }
.npc-duty-editor form > .hint, .npc-duty-editor form > section, .npc-duty-editor form > button { grid-column: 1 / -1; }
.npc-duty-editor form > button { justify-self: start; }
.npc-duty-history > article { margin: 14px 0; }
.npc-duties-page [role=status]:not(:empty) { padding: 10px 0; line-height: 1.6; font-weight: 600; }
.npc-duties-page :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent, #3776bb); outline-offset: 3px; }
@media (max-width: 640px) {
  .npc-duties-page { padding: 12px; }
  .npc-duty-editor:not(:empty) { padding: 14px; }
  .npc-duty-editor form { grid-template-columns: 1fr; }
  .npc-duties-page .row > button { flex: 1 1 auto; }
}

.npc-duties-page .npc-duty-artifact { white-space: pre-wrap; overflow-wrap: anywhere; }
.npc-duty-handover { margin-top:20px; padding:18px; border:1px solid #b7cbbf; border-radius:10px; background:#f4f8f4; color:#294838; }
.npc-duty-handover h4 { margin:0 0 10px; }
.npc-duty-handover>label { display:flex; flex-direction:column; gap:8px; margin:12px 0; }
.npc-duty-handover .npc-duty-handover-confirm { display:flex; align-items:flex-start; gap:10px; margin:14px 0; font-weight:600; line-height:1.6; }
.npc-duty-handover .npc-duty-handover-confirm input { flex-shrink:0; margin-top:3px; }
.npc-duty-handover dl { background:#fff; border:1px solid #d7e2d8; border-radius:8px; padding:8px 12px; }
.npc-duty-handover [role=status] { font-size:13px; font-weight:400; }
