.cp-process { container-type:inline-size; min-width:0; padding:22px; }
.cp-process > h3 { margin:0 0 16px; }
.cp-status { margin:0 0 12px; font-size:.88rem; overflow-wrap:anywhere; }
.cp-status:empty { display:none; }
.cp-section { margin:14px 0 0; border:1px solid var(--line,#dce5d8); border-radius:12px; padding:0 16px 16px; min-width:0; transition:border-color .16s ease; }
.cp-section > summary { display:flex; align-items:center; gap:10px; list-style:none; margin:0 -16px; padding:14px 16px; border-radius:11px; font-weight:650; cursor:pointer; color:var(--ink,#193127); transition:background-color .16s ease,color .16s ease; }
.cp-section > summary::-webkit-details-marker { display:none; }
.cp-section > summary::after { content:''; margin-left:auto; width:7px; height:7px; border-right:1.7px solid currentColor; border-bottom:1.7px solid currentColor; transform:rotate(45deg); flex:0 0 7px; }
.cp-section-icon { width:20px; height:20px; flex:0 0 20px; color:#527e40; }
.cp-section:not([open]) { padding-bottom:0; }
.cp-section:has(>summary:hover) { border-color:#94bc7a; }
.cp-section > summary:hover { color:#244a1c; background:#e5f2da; }
.cp-section[open] { border-color:#9dbf87; }
.cp-section[open] > summary { margin-bottom:14px; background:#edf6e5; color:#2c5421; border-radius:11px 11px 0 0; border-bottom:1px solid #d3e5c6; }
.cp-section[open] > summary:hover { background:#e1f0d4; }
.cp-section[open] > summary::after { transform:rotate(225deg); }
.cp-section > summary:focus-visible { outline:2px solid #6b9e52; outline-offset:3px; border-radius:4px; }
.cp-hint,.cp-step-meta { color:var(--muted,#566b5f); font-size:.85rem; line-height:1.5; margin:6px 0 14px; }
.cp-form { display:grid; gap:14px; margin:16px 0; }
.cp-field { display:flex; flex-direction:column; gap:7px; min-width:0; font-size:.9rem; font-weight:500; }
.cp-process input:not([type=checkbox]),.cp-process select,.cp-process textarea { box-sizing:border-box; width:100%; min-width:0; }
.cp-process textarea { min-height:112px; resize:vertical; line-height:1.5; }
.cp-process .cp-form > button { justify-self:end; }
.cp-process .cp-type-form { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:12px; }
.cp-type-form .cp-hint { grid-column:1/-1; margin:0; }
.cp-checklist h4 { margin:18px 0 8px; }
.cp-progress { font-size:.85rem; color:var(--muted,#566b5f); }
.cp-steps { list-style:none; padding:0; margin:8px 0; }
.cp-steps > li { border-top:1px solid var(--line,#e2e9df); padding:12px 0; }
.cp-step { display:flex; align-items:flex-start; gap:10px; font-size:.94rem; line-height:1.5; cursor:pointer; }
.cp-process input[type=checkbox] { width:18px; height:18px; min-height:0; flex:0 0 18px; margin:2px 0 0; accent-color:#558643; }
.cp-step > span { min-width:0; overflow-wrap:anywhere; }
.cp-step-required { display:block; font-size:.73rem; color:var(--muted,#607467); font-weight:400; }
.cp-step-meta { margin:5px 0 0 28px; }
.cp-history-filters { display:flex; gap:12px; align-items:end; margin:12px 0; }
.cp-history-filters .cp-field { flex:1; }
.cp-history { padding:0; list-style:none; margin:14px 0; }
.cp-handover-entry { padding:16px 0; border-top:1px solid var(--line,#dce5d8); }
.cp-history-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.cp-handover-state { font-size:.75rem; color:var(--muted,#566b5f); }
.cp-handover-entry dl { margin:12px 0; display:grid; grid-template-columns:minmax(110px,160px) minmax(0,1fr); gap:8px 16px; }
.cp-handover-entry dt { font-size:.85rem; font-weight:600; }
.cp-handover-entry dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.9rem; line-height:1.5; }
.cp-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.8rem; }
.cp-template-names,.cp-template-step { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.cp-template-step { padding:14px 0; border-bottom:1px solid var(--line,#dce5d8); }
.cp-required-field { display:flex; align-items:center; gap:8px; font-size:.85rem; font-weight:400; }
.cp-template-step > button { justify-self:end; }
.cp-template-actions { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.cp-process [hidden] { display:none!important; }
@container (max-width:620px) {
 .cp-process .cp-type-form,.cp-template-names,.cp-template-step,.cp-handover-entry dl { grid-template-columns:minmax(0,1fr); }
 .cp-section { padding-left:12px; padding-right:12px; }
 .cp-section > summary { margin-left:-12px; margin-right:-12px; padding-left:12px; padding-right:12px; }
 .cp-type-form > button { justify-self:start; }
 .cp-history-filters { flex-wrap:wrap; }
 .cp-history-filters .cp-field { flex-basis:100%; }
 .cp-pagination > span { order:-1; width:100%; text-align:center; }
}
@media(max-width:600px) { .cp-process { padding:16px; } }
@media(prefers-reduced-motion:reduce) { .cp-section,.cp-section > summary { transition:none; } }
