/* Target content uses a numbered list; source text is available on demand. */
.target-page .target-actions-section {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border: 0;
  border-block: 1px solid var(--target-line);
  border-radius: 0;
  background: transparent;
  min-width: 0;
}
.target-actions-section > header,
.target-action-tools,
.target-completed-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.target-actions-section h3 { margin: 0; font-size: 15px; font-weight: 600; }
.target-action-tools { justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.target-action-tools button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.target-page .target-actions-list { list-style: none; padding: 0; margin: 0; gap: 0; }
.target-page .target-actions-list li {
  display: grid;
  grid-template-columns: 24px 32px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid var(--target-line);
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.6;
}
.target-action-number { color: var(--target-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.target-action-check { display: grid; place-items: start center; padding-top: 2px; cursor: pointer; }
.target-action-check input { appearance: auto; width: 18px; height: 18px; min-width: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #31866c; cursor: pointer; }
.target-action-check-placeholder { color: #31866c; line-height: 1.4; text-align: center; }
.target-action-body { overflow-wrap: anywhere; font-weight: 400; }
.target-action-body small { display: block; margin-top: 4px; color: var(--target-muted); font-size: 12px; }
.target-page .target-action-remove { border: 0; background: transparent; color: var(--target-muted); min-height: 28px; width: 28px; padding: 4px; }
.target-action-remove svg { width: 15px; height: 15px; }
.target-page .target-action-remove:hover { background: #f8eeeb; color: #9a3d30; }
.target-action-add { display: flex; align-items: center; gap: 8px; }
.target-action-add input { flex: 1; min-width: 0; }
.target-page .target-action-plus { flex: 0 0 40px; width: 40px; min-height: 40px; padding: 8px; display: grid; place-items: center; background: #1d4441; color: #fff; }
.target-actions-empty { margin: 4px 0; color: var(--target-muted); font-size: 13px; }
.target-page .target-content-source { border: 0; padding: 0; background: transparent; }
.target-page .target-content-source summary { padding: 6px 0; font-size: 13px; color: var(--target-muted); cursor: pointer; }
.target-page .target-content-source label { display: block; font-size: 12px; margin: 10px 0 6px; font-weight: 400; }
.target-page .target-content-source textarea { min-height: 92px; max-height: 220px; resize: vertical; line-height: 1.6; }
.target-action-structure { margin-top: 8px; font-size: 12px; }
.target-page .target-completed-dialog { width: min(640px, calc(100vw - 32px)); }
.target-completed-dialog h2 { margin: 0; font-size: 20px; }
.target-completed-dialog > header { margin-bottom: 16px; }
.target-completed-dialog > header button { display: grid; place-items: center; }
.target-update-actions { border: 1px solid var(--target-line); border-radius: 8px; margin: 14px 0; padding: 14px; display: grid; gap: 8px; }
.target-update-actions legend { padding: 0 4px; font-size: 13px; }
.target-update-actions label { border-bottom: 1px solid var(--target-line); font-weight: 400; }
.target-update-actions small, .target-update-actions p { color: var(--target-muted); font-size: 12px; margin: 0; }
@media (max-width: 720px) {
  .target-actions-section > header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .target-action-tools { justify-content: flex-start; }
  .target-page .target-actions-list li { grid-template-columns: 24px 28px minmax(0, 1fr) auto; gap: 8px; }
  .target-page .target-action-remove { width: 44px; min-height: 44px; }
  .target-page .target-action-plus { flex-basis: 44px; min-height: 44px; }
}
.target-action-proposal{display:grid;gap:8px;padding:13px;border:1px solid #a5cfb7;border-radius:9px;background:#fff}
.target-action-proposal[hidden]{display:none}
.target-action-review-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.target-action-review-head strong{font-size:13px}.target-action-review-head span{font-size:11px;color:#647d73}
.target-action-proposal label{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:8px;font-size:11px;color:#2f7561}.target-action-proposal input{width:100%;min-width:0;min-height:37px;font-size:13px}
.target-action-proposal>button{justify-self:end;font-size:12px;padding:6px 10px}
.target-update-actions label.done{background:#f1f6f2;color:#6d8177}.target-update-actions label span small{font-variant-numeric:tabular-nums;color:#32816b}
@media(max-width:720px){.target-actions-section>header{flex-wrap:wrap}.target-action-structure{margin-left:0}.target-action-review-head{display:grid}.target-action-plus{min-width:38px!important}}
.target-page #progress-update-dialog .target-update-actions label{display:flex;flex-direction:row;align-items:flex-start;gap:10px;padding:10px 12px;min-width:0;line-height:1.5}
.target-page #progress-update-dialog .target-update-actions label>input[type=checkbox]{appearance:auto;box-sizing:border-box;display:block;flex:0 0 18px;width:18px;height:18px;min-width:18px;min-height:18px;margin:2px 0 0;padding:0;border:0;box-shadow:none;accent-color:#31866c}
.target-page #progress-update-dialog .target-update-actions label>span{min-width:0;overflow-wrap:anywhere}

/* Keep the action editor compact while preserving the full source on demand. */
.target-page .target-actions-section{gap:10px}
.target-page .target-actions-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.target-page .target-actions-disclosure{min-width:0;border:1px solid var(--target-line);border-radius:9px;background:#fbfdfb;overflow:hidden}
.target-page .target-actions-disclosure>summary{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 14px;color:var(--target-ink);list-style:none;font-size:13px;font-weight:600}
.target-page .target-actions-disclosure>summary::-webkit-details-marker{display:none}
.target-page .target-actions-disclosure>summary:hover{background:#f1f7f2}
.target-actions-count{margin-left:auto;color:var(--target-muted);font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;text-align:right}
.target-actions-chevron{flex:none;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .15s ease;color:var(--target-accent)}
.target-actions-disclosure[open] .target-actions-chevron{transform:rotate(225deg)}
.target-actions-content{padding:0 14px 14px;border-top:1px solid var(--target-line);background:#fff}
.target-page .target-actions-content .target-actions-list li{padding:11px 0}
.target-page .target-actions-content .target-action-add{margin-top:12px}
.target-page .target-content-source{margin-top:0}
.target-page .target-content-source>summary{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:3px 0;color:var(--target-accent);font-weight:500}
.target-page .target-content-source>summary:hover{text-decoration:underline;text-underline-offset:3px}
.target-page .target-content-source textarea{min-height:86px}
@media(max-width:720px){.target-page .target-actions-topline{align-items:flex-start;flex-wrap:wrap}.target-page .target-actions-disclosure>summary{padding:10px 12px}.target-actions-content{padding:0 12px 12px}}
@media(prefers-reduced-motion:reduce){.target-actions-chevron{transition:none}}
