/* Shared execution controls. Only semantic design tokens, no module colours. */
.checklist-panel { margin: 18px 0; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.checklist-panel > header, .checklist-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.checklist-panel > header > span, .checklist-editor-heading { font-size: 12px; color: var(--muted); }
.checklist-panel .checklist-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; min-height: 44px; margin: 0; font-size: 14px; font-weight: 450; cursor: pointer; text-transform: none; }
.checklist-panel .checklist-row + .checklist-row { border-top: 1px solid var(--border); }
.checklist-row span { overflow-wrap: anywhere; }
.checklist-row.is-complete span { color: var(--muted); text-decoration: line-through; }
html .checklist-row input[type=checkbox], html .checklist-edit-row input[type=checkbox] { appearance: auto; accent-color: var(--accent); width: 22px; height: 22px; min-width: 22px; min-height: 22px; padding: 0; margin: 0; border-radius: 5px; cursor: pointer; }
.checklist-edit-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 38px; align-items: center; gap: 8px; margin: 6px 0; }
.checklist-edit-row input[type=text] { min-width: 0; }
.checklist-edit-row > button { padding: 4px; }
.checklist-editor-heading small { font-size: 11px; font-weight: 400; }
.stage-workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.stage-workspace-heading h3 { margin: 4px 0 0; }
.stage-workspace-heading > span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.workflow-workspace { min-width: 0; width: 100%; }
.stage-rail { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: thin; }
html .stage-link { display: flex; align-items: flex-start; text-align: left; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; line-height: 1.4; min-height: 62px; white-space: normal; box-shadow: none; }
.stage-rail .stage-link { flex: 0 0 156px; }
.stage-link > span:first-child { color: var(--accent); }
.stage-link small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 4px; }
html .stage-link.is-selected { border-color: var(--accent); background: var(--primary-container); }
.stage-workspace-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 20px; }
.stage-workspace-card > header h3 { font-size: 21px; margin: 12px 0 8px; }
.stage-workspace-card > header p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
.stage-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.stage-context-grid section { min-width: 0; margin: 0; padding: 0; }
.stage-context-grid h3, .stage-context-grid h4, .stage-linked-context h4 { font-size: 12px; color: var(--muted); margin: 0 0 8px; font-weight: 550; }
.stage-context-grid p { color: var(--muted); font-size: 12px; }
.stage-context-grid .stage-link { width: 100%; margin: 4px 0; }
.stage-context-grid .entity-link { margin: 4px 0; padding: 10px; font-size: 13px; }
.stage-workspace-card form { display: grid; gap: 14px; }
html .stage-field { display: grid; gap: 6px; font-size: 13px; }
.stage-field small { font-size: 11px; color: var(--muted); font-weight: 400; }
.stage-primary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-notice { padding: 12px; border-radius: 10px; background: var(--surface-low); color: var(--muted); font-size: 13px; line-height: 1.6; }
.stage-deadline { font-size: 12px; color: var(--muted); }
.stage-wait { border-top: 1px solid var(--border); padding-top: 14px; }
.stage-wait > summary { cursor: pointer; font-size: 13px; color: var(--accent); padding: 6px 0; }
.stage-wait label { display: grid; gap: 6px; margin: 12px 0; }
.stage-linked-context { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.stage-linked-context .entity-link { margin-top: 6px; }
.dependency-row { display: flex; align-items: center; gap: 4px; }
.dependency-row .entity-link { flex: 1; min-width: 0; }
.dependency-row .entity-link span { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .stage-workspace-card { padding: 14px; }
  .stage-rail .stage-link { flex-basis: 140px; }
  .stage-primary-actions > button { width: 100%; }
  .checklist-editor-heading { align-items: flex-start; }
  .checklist-editor-heading small { max-width: 210px; text-align: right; }
}
